开发者

.load() now loading live data into the div in IE9 works fine in FF and chrome [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago开发者_开发百科.

After adding a new data I am reloading the div with new data. IT works fine in FF and chrome but it load crap data in IE9.

$('#tabledata').load('load.php');


Internet Explorer returns the data from cache

Try

$.ajaxSetup{
     cache: false
} 


I had a similar problem once.

Try adding a timestamp as a parametrer you send, or something that changes each time you send a load request. I don't know the reason but it happens that in IE doesn't really makes the new load, it takes it like is the same load that it was made before, so he took it like a HTTP Response 304: Not Modified and you obtain the same as in the first load.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜