Computing.Net > Forums > Web Development > Calling java script functions

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Calling java script functions

Reply to Message Icon

Name: Subodh Sharma
Date: November 29, 2004 at 06:15:08 Pacific
OS: Win2000 Server
CPU/Ram: P4/1GB
Comment:

I have two separate java script files in the same directory.I want to call a function written in one java script file from another.Please help me how to do it?

Regards,
Subodh Sharma



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: November 29, 2004 at 11:33:34 Pacific
Reply:

I don't believe that you have to do anything special. Just make sure both are included into the HTML page. When you call a function, the browser should search all loaded functions and it.

Have you tried that?

Be sure to come back and let us know if our suggestions helped!


0

Response Number 2
Name: Subodh Sharma
Date: November 29, 2004 at 20:39:06 Pacific
Reply:

Hi
Thanks for your response.I am calling one function written in say script1.js from html page and then that function in script1.js is to call a function in say script2.js.I think in this case will it help to include the script2.js in html page?


Regards,
Subodh Sharma


0

Response Number 3
Name: Subodh Sharma
Date: November 29, 2004 at 20:54:41 Pacific
Reply:

Hi,
Yes it is working.Thanks for your suggestion.

Regards,
Subodh Sharma


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Calling java script functions

Java Script Problem www.computing.net/answers/webdevel/java-script-problem/2090.html

Make java script Firefox compatible www.computing.net/answers/webdevel/make-java-script-firefox-compatible/3665.html

Merge 2 java scripts www.computing.net/answers/webdevel/merge-2-java-scripts/563.html