Table does not get refreshed

Table does not get refreshed

juria_robertsjuria_roberts Posts: 11Questions: 0Answers: 0
edited September 2011 in General
Hi my code is here http://pastie.org/2526730. The problem is that when submitdata function is called it gives the error "oTable is undefined
[Break On This Error] (441 out of range 277)".Now I did make oTable global.Please help me as I don't know what I am doing wrong here.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    take out "var" in front of oTable on line 34. This is making a local variable oTable, not using your global oTable defined on line 19
  • juria_robertsjuria_roberts Posts: 11Questions: 0Answers: 0
    Heyy thanks that helped but I am now getting No data available in table .what am I doing wrong?
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    look into the debugger, see what data is passing back and forth in your ajax calls.
  • juria_robertsjuria_roberts Posts: 11Questions: 0Answers: 0
    There is no ajax call happening on oTable.fnDraw(); when I run this line on debugger it shows as undefined but oTable exists
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    when you call fnClearTable doesn't it destroy all data? how can you fnDraw if there is no data?
This discussion has been closed.