This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a mtd of a js file from another js file

 
BalMuralir Krishna
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic