Solved

Include a .js file From Notes

Posted on 2000-03-20
4
272 Views
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?

Thanks.
0
Comment
Question by:bsmith11
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
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.

-Gus
0
 

Author Comment

by:bsmith11
ID: 2640108
Can I specify a path with this library name also?
0
 
LVL 6

Expert Comment

by:ghassan99
ID: 2640168
yes the path could be relative or full

-Gus
0
 

Author Comment

by:bsmith11
ID: 2640178
Thanks for your help.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

708 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

14 Experts available now in Live!

Get 1:1 Help Now