Discussion
2
Replies
957
Views
Posted: June 18, 2015
Last activity: June 23, 2015
Closed
Remote JS/JQuery files in Harness
Hi All,
I am using v 7.1 and my requirement is to refer few remote JS/Jquery files in Pega UI (harness).
Its working fine If I consume/import all the remote JS/JQuery files in pega, But I need to refer the remote location (end point) of JS/JQuery files instead of importing.
Can any one please guide or share the approach?
P.S- "How can I refer number of JS files in Pega from remote location?)
regards
sharad
Unfortunately I do not know of any easy configurable way using which you could do this. One way would be to create a javascript function included in a js file from pega and write a function that gets called on load and then create a script element and set all the attributes and find the head and append this newly created script as a child. That should work.
Just be sure that what ever you include is from reliable source, and also think about the state of the system if for any reason the external js files are unavailable.