I have my datatable with one hidden row (display:none) , and I was planning on updating this empty row with new data.
The new data is inserted from a small form just above the datatable.
So far I have an AJAX function that updates the top hidden row with the last record inserted, and displays the row.
However, when I submit the form (to post the data) it just obviously reloads the whole page (defeating the point of AJAXing the last row)....
Am I going about this all wrong? I don't see how I can submit the form without reloading the page, and when the page is reloaded, what's the point in AJAX.
The only thing I can think is to put the form into an iframe, but this seems wrong, and also I don't think it's supported by strict XHTML.
Any help would be greatly appreciated!
The new data is inserted from a small form just above the datatable.
So far I have an AJAX function that updates the top hidden row with the last record inserted, and displays the row.
However, when I submit the form (to post the data) it just obviously reloads the whole page (defeating the point of AJAXing the last row)....
Am I going about this all wrong? I don't see how I can submit the form without reloading the page, and when the page is reloaded, what's the point in AJAX.
The only thing I can think is to put the form into an iframe, but this seems wrong, and also I don't think it's supported by strict XHTML.
Any help would be greatly appreciated!