Hi ,
Need your help to load javascript file in HTML webresource. I have a premise 365 CRM. In a HTMl web resource I calling few javascript files. While I am giving hard coded values it is working fine. Want to change URL reference to dynamic.
<script src="/myorg/{11111111111}/WebResources/tmylib.js" type="text/javascript"></script> -- this working.
But the problem is while moving from one org to another the values are changing. So wants to make it dynamic.
<script src="../../tmylib.js" type="text/javascript"></script> -- not working
<script src="../tmylib.js" type="text/javascript"></script> --not working
Also tried function specified in the below URL.
http://www.inogic.com/blog/2013/07/how-to-load-a-web-resource-using-java-script/
Please help on this.
Many thanks in advanced.
Bishnupriya
*This post is locked for comments