Amit

You can definitely do this.  We currently do something similar.

What you need to do is create a file with all your JavaScript functions
it.  Name it something with a .js file extension.  Place it in a
directory which is a subdirectory of the webroot.

If all pages are going to use it, you may want to go to the ND Studio ->
Options -> HTML Options and insert the following line of code between
the </HEAD> tag and the <BODY> tag
<HTML>
<HEAD>
<TITLE>FLpgCostEstimateMaintAttr</TITLE>

<SCRIPT LANGUAGE="JAVASCRIPT" SRC="/DIRECTORY
PATH/JAVASCRIPT-FILE-NAME.js"></SCRIPT>
</HEAD>

That way, whenever you create a ND page, it will have the JavaScript
file already in it.  However, if you are finding that the file is
getting big and pages are only using small portions of the functions
contained in it, you may want to break out the functions into
independent .js files and adding only those .js files which are
necessary for the current page.  The benefit of this is faster download
time because you aren't including extra JavaScript functions which are
unnecessary.

Let me know if you have any questions
Bob Eovine
General Cinema
[EMAIL PROTECTED]

-----Original Message-----
From: Amit [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 20, 1999 9:59 AM
To: [EMAIL PROTECTED]
Subject: [ND] JavaScript Library



Hi All,
Is it possible to write all my javascript in one file and refer them
from Netdynamics.
I see a possibility of reusing the code in different pages. If it is
possible, please do let
me know how.
Thanks.
Amit.
________________________________________________________________________
_

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to