Include a .js file From Notes

Posted on 2000-03-20
Last Modified: 2013-12-18
I have a .js file that contains common functions.  I want to include this file in multiple forms so I can use the functions with javascript.  Is this possible to do with notes and if so can you give me an example?

Question by:bsmith11
  • 2
  • 2

Accepted Solution

ghassan99 earned 10 total points
ID: 2637973
If you are using R4, create a field called '$$HTMLHead' on the form and make it hidden, with the value:
"<SCRIPT SRC = \"/library.js\"></SCRIPT>"
In R5 add the same value but to the 'HTML Head Content' property of the form.


Author Comment

ID: 2640108
Can I specify a path with this library name also?

Expert Comment

ID: 2640168
yes the path could be relative or full


Author Comment

ID: 2640178
Thanks for your help.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
query of query sort 6 97
PHP parse error 7 56
Question on web subscription for apps 3 90
How to replace a token in a string with square brackets? 2 55
Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now