Am having problems with the following code reporting an 'invalid argument' in IE6.
function LoadScriptsAndExecute(url) {
this.url = url;
this.loadScript = function() {
$.ajax({
url: this.url,
cache: true,
dataType: 'script',
success: function(){
//alert(this.url);
},
error: function(){
//alert('error');
}
});
return true;
}
}
// IE6 fixes | Semi-transparent PNG
if (icisSite.isIE(6, 'lte') == true) {
var pngFix = new LoadScriptsAndExecute("/Global/ICIS/Scripts/DD_belatedPNG_0.0.8a-min.js");
var pngList = new LoadScriptsAndExecute("/Global/ICIS/Scripts/DD_PNG_listing.js");
pngFix.loadScript();
pngList.loadScript();
}
Am pretty sure that i won't be able to get to the bottom of this as it is reporting an invalid argument on a line that does not exist. All quite frustrating.
I have decided that due to the constraints of the framework not to bother with this implementation and let IE6 displays semi-transparent PNG as they are.