1
Views
2
Comments
put external javascript file in document head
Question
Hi,
I have a webblock with javascript in it. I use this webblock in many different espaces. This javascript uses classes from an external javascript library. So when i use this webblock in a new espace I need to reference this external library. I would like to reference the library in the head of the document - something like <script src="externallibrary.js"so that the classes are recognized in the webblock. Additionally i would also like to put some variables in it thru a site variable for example, something like <script src="externallibrary.js&key=" + site.key.

Can someone suggest a way to do it?

thanks.
2016-04-21 20-09-55
J.
 
MVP

use this component https://www.outsystems.com/NetworkSolutions/ProjectDetail.aspx?ProjectId=63
and perhaps alter it a bit if not suited completely
UserImage.jpg
fernando duarte
Thanks Joost for your quick reply. I will definetly give a try.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.