Files
phpmyadmin/js/sql.js
ninadsp c1f8f3d77a Added a new file for executing SQL Queries with an Ajax call. Still a
basic script, will be tested and improved.
2010-06-28 01:19:27 +05:30

19 lines
439 B
JavaScript

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* function used wherever an sql query form is used
*
* @version $Id$
*/
$("#sqlqueryform").live('submit', function(event) {
event.preventDefault();
PMA_ajaxShowMessage();
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
$.post($(this).attr('action'), $(this).serialize() , function(data) {
$("#sqlqueryresults").html(data);
})
})