877-GRID-666 24/7 online support 604, Tower A, New Trade Plaza, N.T., Hong Kong

CRUD success/error status display

Starting version 7, phpGrid now displays status of either success or error confirmation messages without configuration. There is no additional programming required to enable this new feature in 7.0.

Prior to phpGrid version 7, you can simulate the notification with the following.

1
2
3
4
5
6
7
8
9
<pre id="_changes_debug_ajaxresponse"></pre>
<script type="text/javascript">
// replace "phpGridx" with your path to phpGrid
$(document).ajaxComplete(function( event, xhr, settings ) {
  if ( settings.url.split('?')[0] === "/<PATH TO PHPGRID FOLDER>/edit.php" ){  
    $("#_changes_debug_ajaxresponse").text(xhr.responseText);
  }
});
</script>