Friday, 7 September 2012
Load an external JavaScript file CRM 2011/4
try {
var docs = document.getElementById('eb.script.201200906');
if (docs == null) {
var script = document.createElement('script');
script.id = 'eb.script.201200906';
script.language = 'javascript';
script.src = '/ISV/EB/ScriptFile.js';
document.getElementsByTagName('head')[0].appendChild(script);
var f = function () {
if (event.srcElement.readyState == 'loaded' || event.srcElement.readyState == 'complete')
ScriptStart(); // Entry function
}
script.attachEvent('onreadystatechange', f);
}
}
catch (err) { }
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment