Table contents do not load the first time .... needs a refresh

Table contents do not load the first time .... needs a refresh

burningflamesburningflames Posts: 9Questions: 0Answers: 0
edited April 2009 in General
Hi Allan,

I guess I am asking too many questions lately. But I can't help it. I am currently using PHP to generate my table and using datatables to display and modify it.

I have been noticing that the cell contents do not load the first time I run the page. I need to do a refresh to reload the table with values. I am sure this is not something right.

What to do ? I tried oTable.fnDraw(); but that doesn't seem to help.

Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi burningflames,

    Questions are good - hopefully not only do you and I learn things from them, but also others who read these posts :-)

    Sounds like quite an odd situation you've got here - I've not heard of anything like this. Is the table displayed correctly if you don't use DataTables? Do you have a link showing the problem?

    Thanks
    Allan
  • urashidurashid Posts: 1Questions: 0Answers: 0
    Hmm, I'm also experiencing this problem.. Sometimes the datatables magic doesn't get applied and I have boring tables with no sorting.. If I refresh the page, it loads fine, the javascript doesn't produce any errors (even when the datatables script doesn't get applied to the table)... Has anyone seen this before?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Nope - never seen that :-). I presume the DOM is fully loaded etc by the time you initialise the table? Can you link to an example?

    Allan
This discussion has been closed.