Added a basic script to retrieve db search results via ajax
This commit is contained in:
17
js/db_search.js
Normal file
17
js/db_search.js
Normal 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()
|
Reference in New Issue
Block a user