IE browser jquery ajax return value has a problem summary

Source: Internet
Author: User

Question One,

Web site A function, using jquery to update a parameter, another use of a $.get method to get the updated value, in IE the second start will fail.

The final problem is that IE used the local cache's last get return result to respond directly to the next request.

You can resolve this problem after you modify it to the $.post method.

Question Two,

Today to deal with a page local refresh problem, other browsers are normal, but only IE no return value, after investigation, the original or cache mischief, and then add a parameter to the script, as follows

The code is as follows Copy Code

$ (document). Ready (function () {
SetInterval (' Wb_get () ', 5000);
});
function Wb_get ()
{
$.get (
"/index.php?id=" +$ ("#video_id"). Val () + "&v=" + Escape (New Date ()),
function (data)
{
if (data)
{
$ ("#live_list_ul"). prepend (data);
}
}
);
}

Where the V parameter passes a value like a random number to get the latest content

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.