Cell Value Become Undefined After Editing

Cell Value Become Undefined After Editing

jeynergilcagajeynergilcaga Posts: 1Questions: 0Answers: 0
edited June 2011 in General
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

Replies

  • chatbot3000chatbot3000 Posts: 1Questions: 0Answers: 0
    I am running into a similar issue. I am using sUpdateURL also. I have the the same problem with no update to the edited cell. I end up with an Alert Box. The server side code is successfully updating the information and is throwing no errors at all.

    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...
  • jabberjabber Posts: 23Questions: 1Answers: 0
    This is my problem too.
    Does anyone really know how alert (notify message after upload) can be preventd ?

    Thank you,
    J
  • jabberjabber Posts: 23Questions: 1Answers: 0
    edited November 2011
    In order by avoid alert box, with some help by other users, i've posted here a possible solution:
    http://datatables.net/forums/discussion/4642/hide-alerts-from-datatable#Item_7
This discussion has been closed.