Added a basic script to retrieve db search results via ajax

This commit is contained in:
ninadsp
2010-07-02 03:35:30 +05:30
parent 4767612d3c
commit 034e189bcb

17
js/db_search.js Normal file
View File

@@ -0,0 +1,17 @@
/**
* JavaScript functions used on db_search.php
*/
$(document).ready(function() {
$("#db_search_form").live('submit', function(event) {
event.preventDefault();
PMA_ajaxShowMessage(PMA_messages['strSearching']);
$(this).append('<input type="hidden" name="ajax_request" value="true"');
$.get($(this).attr('action'), $(this).serialize() + "&submit_search=" + $("#buttonGo").val(), function(data) {
$("#searchresults").html(data);
}) // end $.get()
})
}, 'top.frame_content'); // end $(document).ready()