Other OutSystems sites...
OutSystems Website
About Agility Blog
OutSystems Network
Login
Signup
Forums
Academy
Forge
Ideas
Forums
›
Technology & Integration
›
put external javascript file in document head
put external javascript file in document head
fernando duarte
Rank: #645
Posted on 2010-06-04
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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.
Statler & Waldorf
Rank: #11
Posted on 2010-06-04
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
use this component
http://www.outsystems.com/NetworkSolutions/ProjectDetail.aspx?ProjectId=63
and perhaps alter it a bit if not suited completely
fernando duarte
Rank: #645
Posted on 2010-06-07
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Thanks Joost for your quick reply. I will definetly give a try.
Quick Reply
Notify me by email when someone answers to my post
attachment
Choose File
No file chosen
Submit
Login to reply
Something on your mind?
Login to Start a Discussion
Top Forums Posters
Gonçalo Martins
Davide Marquês
Ricardo Silva
Statler & Waldorf
Fábio Silva
Richard Pearson
Justin James
Robert Chanphakeo
Kilian Hekhuis
Miguel Grilo
See leaderboard
Online Training
On-demand video lessons to help you learn at your own pace.
Learn More