This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 15362
    
    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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Calling a mtd of a js file from another js file
 
Similar Threads
Regarding Java Script
Java Script-I'm not possible to refer the external .js
Files
WebSphere 6.1.0.0 and JavaScript uissue
Doubt in final method