Append a random number for all Ajax queries on these pages to prevent server side caching from affecting the results

This commit is contained in:
ninadsp
2010-08-31 19:54:07 +05:30
committed by Marc Delisle
parent d2de55cb0b
commit 73391c9e42
4 changed files with 43 additions and 2 deletions

View File

@@ -15,6 +15,16 @@
$(document).ready(function() {
/**
* Set a parameter for all Ajax queries made on this page. Append a random
* number to tell server that each Ajax request is a new one
*/
$.ajaxSetup({
data: {'random': function() {
return Math.random();
}}
});
/**
* Ajax Event handler for retrieving the result of an SQL Query
*