javascript - Jquery .Get() pulls NULL in Internet Explorer -
i have problem ajax call in jquery. works on chrome, ff, , safari, not ie. in fact in ie nothing happens @ all, no errors, no data loaded.
here code:
$(document).ready(function() { $.ajaxsetup({ cache: false }); $.get("shoppingcart2.aspx", { }, function(data) { //query jq object values alert(data); alert($(data).find('#items').text()); var inti = parseint(($(data).find('#items').html()));
with alert data find data page making call from, unfortunately data.find methods pull null ie. i'm not sure if it's code or browser, stuck. thank help.
edit: did add in cache: false command, still have no luck. cannot understand why won't work in ie.
try (once in page/external js, before ajax calls):
$.ajaxsetup({ cache: false });
ie likes cache hell out of things, , if testing , had no content there @ 1 point, chances ie holding onto it. using $.ajaxsetup()
, and telling default not cache ajax results should resolve this. if you're curious, it's sticking timestamp on url cache breaker under covers, use fiddler see happening.
Comments
Post a Comment