My jqgrid loads perfectly data, but when I want to commit changes on it, nothing happens on my database. I don't know exactly when happens the "enter key" event for saving the row, so I don't know where put this code:
jQuery("#lista").saveRow(id, function(){alert("changes saved")}, 'guardar_lista.php');
I already saw this example: JQgrid checkbox onclick update database but I'm very hard headed about how to use ajax for send the info (sorry, I'm a newbie).
Can you give me a code example of how to send the info with ajax? Here is my Editurl code:
<?
$dbhost="localhost";
$dbuser="root";
$dbpassword="";
$database="db_proyecto";
$db = mysql_connect($dbhost, $dbuser, $dbpassword) or die("Connection Error: " . mysql_error());
mysql_select_db($database, $db);
if($_POST['oper']=='edit'){
$invid=$_POST['id'];
$tax=$_POST['tax'];
$note=$_POST['note'];
$total=$_POST['total'];
$SQL="update invheader set note='"+$note+"' where invid="+$invid;
mysql_query($SQL,$db);
}
Thank you in advance @ruffin! (Sorry for the delay, I was very busy)