Hi Community,
I'm trying to send grid ID from Javascript function and not works, this is my function code:
<script>
function process(){
var rowid = jQuery('#list1').jqGrid('getGridParam','selrow');
$.ajax({
data: rowid,
url: 'file.php',
type: 'post',
beforeSend: function () {
$("#result").html("Processing, please wait…");
},
success: function (response) {
$("#result").html(response);
}
});
}
</script>
And this is my button Call from grid:
$buttons_html = "<input type='image' width=250 height=120 src='$upload_url/{tarjeton}' href='javascript:;' onclick='process();return false;'>";
$col["default"] = $buttons_html;
Somebody maybe have any solution to my problem, Thanks!