Added a new file for executing SQL Queries with an Ajax call. Still a

basic script, will be tested and improved.
This commit is contained in:
ninadsp
2010-06-28 01:19:27 +05:30
parent a968b58d5c
commit c1f8f3d77a

18
js/sql.js Normal file
View File

@@ -0,0 +1,18 @@
/* 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);
})
})