Immediately Update of Data after call of sUpdateURL with a Sever Side Script

Immediately Update of Data after call of sUpdateURL with a Sever Side Script

arnzelarnzel Posts: 2Questions: 0Answers: 0
edited July 2012 in DataTables 1.8
Hi. i am using the function sUpdateURL with a sever side script like this:

sUpdateURL:"UpdateData.php"

UpdateData.php makes some changes to the database

It works. Unfornutately the changed data int he table is not updated immediately. the user must reload the site. how can i change ist ?

i tried something like this:

sUpdateURL:function(value, settings)
{
//missing id and columnName
$.post('UpdateData.php', {value:value});
}

UpdateData.php needs the value of the first table cloumn(id) and the name of the columkn with was click. how i an access this data ?

Is there a better solution without the ajax call ?

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    This might be a daft question, but what is sUpdateURL? There isn't such an option in DataTables.

    Allan
  • arnzelarnzel Posts: 2Questions: 0Answers: 0
    Sorry. I did not wirite that i use the following plugin:

    http://jquery-datatables-editable.googlecode.com/svn/trunk/index.html
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Oh I see - sorry. I should have realised myself! I'm afraid I don't know much about that particular plug-in so can't offer too much help. Perhaps someone else who does can chime in...

    Allan
This discussion has been closed.