Cell Value Become Undefined After Editing
Cell Value Become Undefined After Editing
jeynergilcaga
Posts: 1Questions: 0Answers: 0
Hi,
I am new to Datatables. I know this is a very powerful plugin and saw the Examples pretty overwhelming.
I am planning to create a very simple application that is exactly like this:
http://jquery-datatables-editable.googlecode.com/svn/trunk/index.html
I tried copying exactly the same code in this:
http://picsbooth.com/gilgem/admin/
1. Why is it that with the copied code, editing DOES NOT update the cell value properly, it just display "undefined"?
2. How do make modify this code to issue a request to the server?
I noticed that after I edit, it updates the cell values BUT it is not communicating with the server because of this:
sUpdateURL: function(value, settings)
{
return(value); //Simulation of server-side response using a callback function
},
Based from previous examples, I changed that to talk to the server using:
sUpdateURL: "UpdateData.php",
But the problem with this is that:
1. NOT updating the cell value
2. Alert Box is shown after pressing enter.
Thanks,
jeyner
I am new to Datatables. I know this is a very powerful plugin and saw the Examples pretty overwhelming.
I am planning to create a very simple application that is exactly like this:
http://jquery-datatables-editable.googlecode.com/svn/trunk/index.html
I tried copying exactly the same code in this:
http://picsbooth.com/gilgem/admin/
1. Why is it that with the copied code, editing DOES NOT update the cell value properly, it just display "undefined"?
2. How do make modify this code to issue a request to the server?
I noticed that after I edit, it updates the cell values BUT it is not communicating with the server because of this:
sUpdateURL: function(value, settings)
{
return(value); //Simulation of server-side response using a callback function
},
Based from previous examples, I changed that to talk to the server using:
sUpdateURL: "UpdateData.php",
But the problem with this is that:
1. NOT updating the cell value
2. Alert Box is shown after pressing enter.
Thanks,
jeyner
This discussion has been closed.
Replies
What is the proper information to return from the URL? I was returning the value sent as stated as shown in the php example and I got the pop up alert. I also tried returning nothing, still got the alert box.
I am pretty much dead in the water at this point because forcing the end user to refresh the page manually really defeats the purpose. Is there a way to stop the Alert from being triggered. When that box ( the Alert ) is up, I can't use any other browser process to see what is going on at the time to correct this issue myself.
I am using dataTables.jeditable 1.3 with dataTables 1.8.1, jquery-ui-1.8.14, and Jeditable 1.7.1 and jquery that is bundled with DataTables.
Thank you,
James...
Does anyone really know how alert (notify message after upload) can be preventd ?
Thank you,
J
http://datatables.net/forums/discussion/4642/hide-alerts-from-datatable#Item_7