简体   繁体   English

IE6中未发送ajax请求

[英]ajax request not sent in IE6

I am developing a webpage with all actions handled as ajax.It works fine in firefox,IE 8,7.But in IE 6 no request is being sent to the sever.Why does this happen.I amusing jquery.getjson and jquery.colourbox methods to fetch data and display in colorbox. 我正在开发一个将所有动作都处理为ajax的网页。它在firefox,IE 8,7中可以正常工作,但是在IE 6中没有向该服务器发送请求。为什么会这样。我正在逗jquery.getjson和jquery.colourbox获取数据并在colorbox中显示的方法。

 <a href="/account/change-pass/" class="t_2 cboxElement changepass">Change Password<span class=""></span></a> $('a.changepass').colorbox();

This is the html code and i need to open the contents of returned response in colorbox.This works fine with IE 7,8 and firefox. 这是html代码,我需要在colorbox中打开返回的响应的内容。在IE 7,8和firefox上可以正常工作。

I guess, this maybe a cache problem . 我想这可能是缓存问题 IE try caching everything requested from a url. IE尝试缓存从URL请求的所有内容。

if u request the same url for 2nd time, ie will return the old data by 1st request without any network. 如果您第二次请求相同的url,即将在第一个请求中返回旧数据而没有任何网络。

to solv ie's url cache, adding a "?" 解决IE的URL缓存,添加“?” or current timestamp param to request url. 或当前时间戳参数来请求url。

http://abc.com/ajax?t=123455

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM