From c1f8f3d77a677496734753d35cba8ec5e2b2e3ff Mon Sep 17 00:00:00 2001 From: ninadsp Date: Mon, 28 Jun 2010 01:19:27 +0530 Subject: [PATCH] Added a new file for executing SQL Queries with an Ajax call. Still a basic script, will be tested and improved. --- js/sql.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 js/sql.js diff --git a/js/sql.js b/js/sql.js new file mode 100644 index 000000000..b5c2e4577 --- /dev/null +++ b/js/sql.js @@ -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(''); + + $.post($(this).attr('action'), $(this).serialize() , function(data) { + $("#sqlqueryresults").html(data); + }) +})