javascript - IE8 XHTML returned in jQuery ajax call issue -
i'm having issue cannot resolve through trying lots of different methods!!
works in chrome, ff, ie9 not ie8 or ie7
overview
i have page, ajax's in whole html local .aspx of reads photobucket xml feed puts html list , returns.
http://custommodsuk.com/gallery.aspx
i've done way page ranking isn't penilised google speed rankings, server going off , making call.
the code
$.ajax({ type: "get", url: ajaxurl, datatype:'html', success: function (feedhtml) { var gallerylist = $(feedhtml).find('#gallerylist').find('.listitem'); var noitems = gallerylist.length; console.log(feedhtml.type); gallerylist.each(function (index) { ... }); } }); what i've tried
as can see console.log(), type undefined, feedhtml.length shows no. of characters. , gather treated string.
it jquery not being able turn response jquery object, , can't traverse it. therefore each won't cycle.
i've seen lots of people same/similar issue on so, no answers, partly due crap code examples.
photobuckets rss feed malformed.
<p><a href="http://s1174.photobucket.com/albums/r614/custommodsuk/">custommodsuk</a> posted photo</a></p> this tripped ie8. if ever have problems in future, check validity of html!!!
Comments
Post a Comment