...

View Full Version : two or more scripts to work concurrently on one page



johnxp
04-28-2004, 09:04 PM
I'm having trouble getting two or more scripts to work concurrently on one page. By themselves, each function just fine, but when put together, they throw a tantrum. Help!

I tried to write the two onload sections as one but that still did not work.

Help

fredmv
04-28-2004, 09:13 PM
Welcome to CF.

It's most likely variables/functions conflicting if not two event handler attributes as you already mentioned. The code you're working with or even better a link to the page in question would be helpful.

jtaylor
04-30-2004, 05:05 PM
I agree with fredmv, some examples of your code would be helpful.

I know you said you already tried writing them as one line but try this again and see how it works.

(this is if you're using them in the BODY tag)

<BODY onload="function1();function2();">

That should work!

JT

Philip M
04-30-2004, 07:38 PM
This question is frequently asked, and there is a most lucid explanation and tutorial to be found at

http://www.javascriptkit.com/javatutors/multiplejava.shtml



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum