Editable w/ Server Side Processing Popup question

Editable w/ Server Side Processing Popup question

gabrielgabriel Posts: 1Questions: 0Answers: 0
edited January 2012 in General
Hi all,
Stumbled across this wonderful plug-in a couple of days ago and I've been tinkering with it ever since. I'm new to PHP and jquery but I've been able to successfully create an editable table with server side processing (MySQL). I'm able to retrieve the table and edit the rows but I'm having trouble with one thing. After I edit a column and hit enter, I'm prompted with a small pop up window. The pop up is titled "The page at localhost says:" and displays a value of what was entered in the column. After I hit enter or select 'OK' the column is then updated. Does anyone know how to bypass this pop up entirely?

index.html
[code]





$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../server_side/scripts/DataSet.php"
} ).makeEditable({
sUpdateURL: "../server_side/scripts/UpdateData.php"

});
} );

[/code]

I've searched through the java script files and html/php looking for the strings "the page at" and "says:" to no avail. Thanks.

Replies

  • SteveJSteveJ Posts: 8Questions: 0Answers: 0
    The sUpdateUrl callback is expecting to receive the value that was being updated echoed back to it. Just have your server side component do something similar to:

    [code]
    echo $_POST['value'];
    [/code]

    After the code has successfully processed the update. Any other response (or no response) will bring up the alert.
This discussion has been closed.