Quantcast
Channel: phpGrid – PHP Datagrid
Viewing all articles
Browse latest Browse all 107

CRUD success/error status display

$
0
0
phpgrid_update_confirmation_message

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>

The post CRUD success/error status display appeared first on phpGrid.


Viewing all articles
Browse latest Browse all 107

Trending Articles