Thursday, July 30, 2009

[jQuery] External Script Not Firinf in IE

I have the below script which runs fine in Firefox but not in IE, any
ideas?

It requires this HTML snippet to be in the page for it to run:

<div id="TA_selfserveprop361" class="TA_selfserveprop">
<ul id="IrOhn4OFVsKw" class="TA_linksHXNZO23TzI">
<li id="vBcD2lWy" class="IWvESPN7h">420 reviews of <a href="http://
www.tripadvisor.co.uk/Hotel_Review-g147243-d148276-Reviews-Halcyon_Cove_by_Rex_Resorts-St_John_s_Antigua_Antigua_and_Barbuda.html">Halcyon
Cove by Rex Resorts</a> in St. John's</li>

</ul>
</div>

<script type="text/javascript">
//inject JS to run trip advisor script
$(document).ready(function(){
$("head").append('<script id="tripAJS" type="text/javascript"
src="http://www.tripadvisor.co.uk/WidgetEmbed-selfserveprop?
uniq=361&locationId=148276&lang=UK&rating=true&nreviews=3&writereviewlink=false&popIdx=true&iswide=false&linkt=0
"><//
script>');
});
</script>

No comments: