Asked by:
Calling a JS function from one webresource to another webresource,(both webresource type is Java script only)

Question
-
can any body please tell me
how to call JS function from one webresource to anoter web resource in MS CRM 2013(Both webresource type is JS only)
Thank in Advance ......
Friday, May 9, 2014 10:45 AM
All replies
-
Hi,
Yes we can call one JS web resource function in to another web resource function
example:
i have created two web resources(JS)
web resource1:
function js1()
{
js2();
}
-----------------------------------------------------------------
web resource2:
function js2()
{
alert("Alert for calling one web resource JS function in to another ");
}
------------------------------------
after created two web resources add both web resources in form (example i have called js1 function(from webresource1) in form onload)
Thanks
Mark as Answer if it is helpful
- Edited by Gugan A Friday, May 9, 2014 11:58 AM
- Proposed as answer by jattscorpion Friday, May 9, 2014 12:18 PM
- Unproposed as answer by jattscorpion Friday, May 9, 2014 12:35 PM
Friday, May 9, 2014 11:53 AM -
Thank you Gugan
but my problem is one of the JS webresource is not added in Form Libraries on form Propertices.
i need to give only reference path of webresource.
Can any please suggest me how to do this.....
Friday, May 9, 2014 12:10 PM -
Never came across such scenario in CRM 2011 but see if these links can help you:
Dynamically loading an external JavaScript or CSS file
How to load external JavaScript files in order and improve performance in Microsoft Dynamics Crm
- Edited by jattscorpion Friday, May 9, 2014 12:24 PM
- Proposed as answer by jattscorpion Friday, May 9, 2014 12:35 PM
Friday, May 9, 2014 12:20 PM -
Hi,
Please follow the link below
Friday, May 9, 2014 12:28 PM