I wrote a widget that includes javascript from one site, on another. The code is:
<script type="text/javascript" src="http://www.easionline.com/min/?f=widget.js"></script>
In IE9, everything displays perfectly, but in IE8, I get this error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;
InfoPath.2)
Timestamp: Fri, 13 Jul 2012 07:20:30 UTC
Message: Access is denied.
Line: 7
Char: 73
Code: 0
URI: http://www.easionline.com/min/?f=widget.js
Anybody know why IE8 would give me a message denied problem? If you want to see a site where the widget is implemented, visit http://www.ham.co.za
If you execute it without the minifying:
<script type="text/javascript" src="http://www.easionline.com/widget.js"></script>
I get this error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;
.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0;
InfoPath.2)
Timestamp: Fri, 13 Jul 2012 07:49:41 UTC
Message: Access is denied.
Line: 98
Char: 3
Code: 0
URI: http://www.easionline.com/widget.js
Line with the error says:
96: var ajaxUrl = site_root+"ajax/widget/"+affid+"/"+category+"/"+numproducts;
97:
98: obj.open("GET",ajaxUrl,true);
99: obj.send(null);
Please note, for various reasons I am avoiding Jquery for this task. So the question really boils down to: Why does this ajax call work in IE9 but not IE8?