Jquery.ajax Cache Parameters

Source: Internet
Author: User

How to use: Jquery.ajax (Options)

The options have parameters, which appear in the form of Key/value.

In the use of the process, encountered a problem is that the callback method does not execute, and later checked, is the problem of caching.

Cache Default:true,

Added in JQuery 1.2, if set to false it would force the pages of this you request to not being cached by the browser.

So if you don't want to use the cache, just cache:false it.

Such as:

$.ajax ({
Type: "POST",
URL: "some.php",

Cache:false,
Success:function (msg) {
Alert ("Data Saved:" + msg);
}
});

For details, please refer to the official website: Http://docs.jquery.com/Ajax/jQuery.ajax

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.