add script in head-index-contributions

Forum to discuss the new web client version of Servoy.

add script in head-index-contributions

Postby martijn.lutgens » Tue Oct 25, 2016 12:33 pm

Currently we use a service to inject a 3rd party script to our application <head>.

I saw that in Sevoy 8.1 the head-index-contributions.html is introduced. However I seems that it does not accept a script tag. I that correct and if so, can it be made possible?
martijn.lutgens
 
Posts: 2
Joined: Mon Apr 07, 2014 10:14 am

Re: add script in head-index-contributions

Postby jcompagner » Tue Nov 01, 2016 12:37 pm

yes that only supports <link and <meta tags for now

But to add 3th party scripting i guess the easiest way is to use a service component for that that just have a bunch of js scripts inside it.

So you have a Service component package project that holds all your scripts that you want to contribute to it

The nice way is if you use minified versions besides the full versions the war export will also use those minified versions really at WAR deploy (and group them when you allow that)
but still being able to fully debug when in the developer..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy NGClient

Who is online

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