Hello everybody,
I have some common javascript functions which will be used most of the JSPs. I want to create as a library file and put it in one place and include this common file into all JSPs(if required).
question is what type of common file should be created ? is this another .jsp or .txt (which contains all javascript functions.
and how to include it in JSPs?
thanks,
...fa
-
Where to put: Common Javascript functions (1 messages)
- Posted by: Farhan Alam
- Posted on: October 16 2001 12:01 EDT
Threaded Messages (1)
- Where to put: Common Javascript functions by Abhijit Gaikwad on October 17 2001 03:09 EDT
-
Where to put: Common Javascript functions[ Go to top ]
- Posted by: Abhijit Gaikwad
- Posted on: October 17 2001 03:09 EDT
- in response to Farhan Alam
Hi ,
All Functions should be written in a common file named as <file Name>.js . This extension can be anything.
This file can be included in respective jsps using following tag ,
<SCRIPT language="javascript" src="library.js"></SCRIPT>
This tag will add all library function to that jsp.
Now you can call methods written in library.js file.
~ @bhijit