wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Calling a mtd of a js file from another js file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Calling a mtd of a js file from another js file" Watch "Calling a mtd of a js file from another js file" New topic
Author

Calling a mtd of a js file from another js file

BalMuralir Krishna
Greenhorn

Joined: Jan 27, 2005
Posts: 1
hi,
I have mtd1(java script mtd) in js1(its a .js file) and I have mtd2(java script mtd) in js2(its a .js file). Now my problem is how can i invoke mtd1 from mtd2.
Thanks in advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
As long as they are bot included on the page and the file you are calling is loaded before you call it, it should be just like it is in the same file.

Eric
[ December 14, 2006: Message edited by: Eric Pascarello ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a mtd of a js file from another js file