craigsworks.com - Support Forum

Full Version: Disable cache
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I Disable caching??
I use Ajax Concept to get chart from server.

Thanks!
Shim, if you need to disable caching or use any other $.ajax specific options, you'll have to use your own $.ajax call in the onRender callback:

JS Code
$('form input[title]')).qtip({
	content: 'Loading...',
	api: {
		onRender: function() {
			var self = this;
			$.ajax({
				url: 'ajax.php',
				data: {},
				cache: false, // Turn off cache
				success: function(content) { self.updateContent(content); }
			})
		}
	}
})
Use Ajaxcode
$.ajaxSetup ({
// Disable caching of AJAX responses
cache: false
});
First example is much better.
Reference URL's