Hi,
I am having problems referencing another JS library/function within another. I actually was able to do this in IE via this code:
------------
LoadWebResource = function(resourceName) {
var httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); //not supported by Chrome or Firefox!
httpRequest.open("GET", Xrm.Page.context.getClientUrl() + "/webresources/" + resourceName, false);
httpRequest.send(null);
try { eval(httpRequest.responseText); }
catch (e) { alert("Error loading " + resourceName + ":\n" + e.description); }
}
LoadWebResource("mag_/js/alert.js");
------------
The problem is that ActiveXObject is only supported by IE, not chrome or firefox.
Is there a similar method that works in all browsers?