AddJsReference - where do .js files go?

Questions and answers on developing, deploying and using plugins and JavaBeans

AddJsReference - where do .js files go?

Postby AlanBourke » Tue May 26, 2015 3:41 pm

I'm using the webclientutils AddJsReference function. The script in question isn't exposed as a URL by the developer so I have to point AddJsReference() at a .js file.

Where does AddJsReference() look for scripts?
-------------------------------------------------------------------------------------------
Servoy SAN Developer
User avatar
AlanBourke
 
Posts: 198
Joined: Tue Aug 02, 2011 3:32 pm
Location: Dublin, Ireland

Re: AddJsReference - where do .js files go?

Postby mboegem » Tue May 26, 2015 4:57 pm

You can put it in the <SERVOY_INSTALL>/application_server/server/webapps/root folder and then point to the url:
<application_server_url>:<port>/myFile.js
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1757
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: AddJsReference - where do .js files go?

Postby AlanBourke » Wed May 27, 2015 10:50 am

Thanks.
-------------------------------------------------------------------------------------------
Servoy SAN Developer
User avatar
AlanBourke
 
Posts: 198
Joined: Tue Aug 02, 2011 3:32 pm
Location: Dublin, Ireland


Return to Plugins and Beans

Who is online

Users browsing this forum: Google [Bot] and 3 guests