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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -