Click to See Complete Forum and Search --> : Two Javascripts on one page (Please Help)
arifjan
05-26-2003, 06:24 PM
Dear Friends.
I am trying to design my business page. When I try to add more than one JAVASCRIPTS then either one or both of the scripts don't work.
Can anyone help me solve this problem? How can I write/ add more than one Javascripts?
Your help would be appreciated.
Thanks.
Arif Jan.
brendandonhue
05-26-2003, 06:41 PM
Start here.
If you can't fix it, give us a link to the page with the 2 scripts on it.
http://www.javascriptkit.com/javatutors/multiplejava.shtml
khalidali63
05-26-2003, 06:54 PM
Typically this means that both of the javascripts are using same name functions/varables..in any case post a linkhere to your page which does not work or post both of your scripts here including html + a brief description that what each of those scritps is suppose to do.
havik
05-26-2003, 11:30 PM
It could also mean that both are using an onload event. Typically, scripts on the net aren't designed to acknowledge other scripts.
lines like these:
window.onload = THEFUNCTIONNAMEHERE
or both could be using <body onload="functionhere()">
This is an error.
Post the code (like everyone else is saying) and we could see the real problem here.
Havik
arifjan
05-27-2003, 07:55 PM
Thanks Friends for your prompt reply to my request.
I am trying your suggestions & if I still fail to solve the problem I'll get back to you.
Once again thank you so much.
Regards.
Arif Jan