40 lines
964 B
JavaScript
40 lines
964 B
JavaScript
/**
|
|
* @fileoverview JavaScript functions used on tbl_select.php
|
|
*
|
|
* @requires jQuery
|
|
* @requires js/functions.js
|
|
*/
|
|
|
|
/**
|
|
* Ajax event handlers for this page
|
|
*
|
|
* Actions ajaxified here:
|
|
* Table Search
|
|
*/
|
|
$(document).ready(function() {
|
|
|
|
/**
|
|
* Set a parameter for all Ajax queries made on this page. Don't let the
|
|
* web server serve cached pages
|
|
*/
|
|
$.ajaxSetup({
|
|
cache: 'false'
|
|
});
|
|
|
|
/**
|
|
* Ajax event handler for Table Search
|
|
*
|
|
* @uses PMA_ajaxShowMessage()
|
|
*/
|
|
$("#tbl_search_form").live('submit', function(event) {
|
|
event.preventDefault();
|
|
|
|
PMA_ajaxShowMessage(PMA_messages['strSearching']);
|
|
|
|
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
|
|
|
$.post($(this).attr('action'), $(this).serialize(), function(data) {
|
|
$("#searchresults").html(data);
|
|
})
|
|
})
|
|
}, 'top.frame_content'); // end $(document).ready()
|