Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable cache
4th August, 12:07
Post: #1
Disable cache
How can I Disable caching??
I use Ajax Concept to get chart from server.

Thanks!
Find all posts by this user
Quote this message in a reply
13th August, 12:42
Post: #2
RE: Disable cache
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); }
			})
		}
	}
})

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
10th August, 08:35
Post: #3
RE: Disable cache
Use Ajaxcode
$.ajaxSetup ({
// Disable caching of AJAX responses
cache: false
});

iPhone App Development | iPad Development
Visit this user's website Find all posts by this user
Quote this message in a reply
28th October, 08:46
Post: #4
RE: Disable cache
First example is much better.

Working at iphone application development company.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)