The cache function of Ajax

Source: Internet
Author: User
the cache of Ajax blood and tears ~ ~

Scene: Project to IE5 render page, click Export List data (Excel form), click Export Send GET request, background generate Excel file, return file address information

Exception: IE the first return of the information is normal, and then return is the result of the first time, Google normal

Background method Breakpoint, ie only the first time will enter the breakpoint, and then no break into the breakpoint

Exception code:

1 2 3 4 5 6 7 8 9-one for each of the ten, alert (1); $.ajax ({      url:actionurl +  "?"      + $.param ({          Action: "Export",          strwhere:strwhere      }),      data: {page:page, rows:rows},      type:  "get", & nbsp;    success:  function  (data) {         alert (data);          window.location.href =  ". /.. /views/meas/download.aspx?filepath= "  + escape (data);
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.