We have tried out this same approach with our netdynamics application and it
seems to work okay. I'm wondering if anyone has run into any unforseen
problems with it?
We're doing things slightly different in our application. We've decided to
place each javascript function into it's own .js file. For example:
setFocus.js
getRadioSelectedValue.js
getDropDownSelectedValue.js
These three files would contain:
setFocus(formName, inputName)
getRadioSelectedValue(formName, inputName)
getDropDownSelectedValue(formName, inputName)
We did this to avoid creating one big javascript file containing lots of
functions. The idea being to include only the .js files needed for the
current page and save a little bandwidth..........
Tony Byorick
[EMAIL PROTECTED] on 04/16/99 03:57:50 PM
Please respond to [EMAIL PROTECTED] @ SMTP
To: [EMAIL PROTECTED] @ SMTP,
[EMAIL PROTECTED] @ SMTP
cc: [EMAIL PROTECTED] @ SMTP
Subject: Re: [ND] ND5 - Way to include files containing javascript fu
<SCRIPT SRC="/dir/JavaScriptFunctionsFileName.js">
</SCRIPT>
include all your function in this file and place it on your web server
document root in the appropriate directory so that the web server can find
it. The contents of the file will be in exactly the same format as they
would be if they were on the page, including the
<SCRIPT language="JavaScript"></SCRIPT> tags.
Ted Nieblas
Fidelity Investments Internet Technology Group
-----Original Message-----
From: Deepak Kumar Adhikary [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 16, 1999 1:41 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [ND] ND5 - Way to include files containing javascript functions
??
Importance: High
Hi,
Is there any way to call a javascript function ( contained in some
common javascript functions file ) from the client side javascript which
I code in the html file ?
I intend to do some complex calculations in the client side when a
button is clicked in the screen. The extra html property { onClick =
dofunction( ) } takes me to the javascript function. Now from this
function I want to make call another function which should be included
in a common utilities file.
Can any body give any idea if this can be done thru some ND utility or
HTML utility ?? Something like # include File = " ... " which is used in
Active Server pages ??
Thanks
Deepak
_________________________________________________________________________
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]
_________________________________________________________________________
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]