dataTable.render problem

dataTable.render problem

BJW86BJW86 Posts: 30Questions: 11Answers: 0

Hi

I am using dataTable.render to reformat the date/time column, works ok here: http://live.datatables.net/yupikeqi/1/edit

When I export the code to a different browser/viewer the table won't load anymore, anyone any idea what I am doing wrong?

Thanks,
Bruce

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Have you included the same sources? We'd need to see the case where it's failing to be able to diagnose...

    Colin

  • BJW86BJW86 Posts: 30Questions: 11Answers: 0

    Thanks for your reply Colin, yes I have the same sources. Works fine if I remove dataTables.render line, tried on a few different browsers with no luck. Quite new to dataTables so not sure what the problem could be.

    Thanks
    Bruce

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Hi Bruce,

    My guess is that you are using a version prior to DataTables 1.12. Might that be right? You can use our debugger to check the versions on your page.

    The other possibility is that Moment.js hasn't been loaded on the page.

    Allan

  • BJW86BJW86 Posts: 30Questions: 11Answers: 0

    Hi Allan, yes it was a problem with the moment.js source, managed to fix it now, thanks for your help.

    Bruce

Sign In or Register to comment.