Topic: IE 8: Add-on could not be loaded
Hi,
I am using the following function to load the jQuery lib (1.3.2) dynamically:
-
//function load_script (url)
//{
// var x = new ActiveXObject("Msxml2.XMLHTTP");
// x.open('GET', url, false); x.send('');
// eval(x.responseText);
//
// var s = x.responseText.split(/\n/);
// var r = /^function\s*([a-z_]+)/i;
//
// for (var i = 0; i < s.length; i++)
// {
// var m = r.exxec(s[i]); // remove second x
// if (m != null)
// window[m[1]] = eval(m[1]);
// }
//}
(Regarding the code: in the forum doesn not work wenn is r.exxec(s[i]); without the second x, but the working version is without the second x)
Every time i do so, the IE 8 showes me a info masseage like: "An Add-on could not be loaded" (sorry i do not know the exact message because i see only the german version ("Ein Add-On für diese Website konnte nicht ausgeführt werden.")
When i use the function to load a simple helper.js with few functiosn is works and not message is shown in IE 8.
The loading of jQuery works (as fare as i can see) and i can use jQuery on the page, but why the hell is IE 8 showing this message?
Has anyone notice the same behaviour?
Daniel