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
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?
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
Summary: Thank you for the advice. First all i see in the installed folder are files with .js, .html, .css. And this is why i think the system is written with Html and java script only. After the xxxx.bat serv...
Summary: I would like to use the following java script in my website but it only works in IE. By any chance does anyone know if there is something that can be changed to make it work with firefox? <!DOCTYPE...
Summary: Hi, I have one java script that perform an image swap on mouseover. I haver another java script that will swap another image besides itself when you mouseover. I've tried combining them but with no su...