javascript - Can not fire ajax on dom ready in IE9 -
javascript - Can not fire ajax on dom ready in IE9 -
i have code supposed executed on dom ready without click or other actions.below code:
if($.browser.msie){ console.log("using getjson"); $.getjson(baseurl,function(){ alert('hi'); }); }else{ settimeout(function(){ $.get(baseurl, function(data){ var boardnames = data; (i = 0; < boardnames.length; i++) { $('.boardselectmulti').append('<option value="' + boardnames[i].board + '">' + boardnames[i].text + '</option>'); } console.log("done"); $("#boardlinksi").hide(); $(".boardselectmulti").val(form_data.showmode); $(".boardselectmulti").show(); }, "json"); },5000); } }
in other browsers works fine in ie never fires. tried getjson phone call still no luck.any thought why might happen?
thanks in advance
download ajax edition free here. @ timeline view of ie , ff, you'll spot differences during page load , what's causing problem.
javascript ajax jquery
Comments
Post a Comment