place all JS code in .js file in some directory say
<WEBROOT>/JSScripts/util.js
in the html file include

<script language=JavaScript src="/JSScripts/util.js"></script>

& then you can use all the mehods & objects as if they are in the current
file.

HTH,
Raj

> -----Original Message-----
> From: Deepak Kumar Adhikary [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 16, 1999 12: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]

Reply via email to