Markxxx
02-22-2006, 06:21 AM
Not asking for help per rules. Just some infomration on what to look for
This is the question. I ran one script. Works fine.
I ran script two. Works fine
I put the two together and nothing. A conflict.
Both scripts use onload to run.
However if I change one script to onclick and leave the other as onload
As soon as I load the page, the first script runs and when I click anywhere, with the mouse, the second script runs fine.
So they both work fine in conjunction with one and other. Both run at the same time.
I realize that if you run two scripts sometimes you run into double names for event handlers and variables and functions. But if the scripts will work together with an onload and onclick, does this mean that that would be ruled out.
Again I am just curious about this? Seems to me if there was a conflict between the scripts they shouldn't work together at all.
Thanks for your help. You guys are great
This is the question. I ran one script. Works fine.
I ran script two. Works fine
I put the two together and nothing. A conflict.
Both scripts use onload to run.
However if I change one script to onclick and leave the other as onload
As soon as I load the page, the first script runs and when I click anywhere, with the mouse, the second script runs fine.
So they both work fine in conjunction with one and other. Both run at the same time.
I realize that if you run two scripts sometimes you run into double names for event handlers and variables and functions. But if the scripts will work together with an onload and onclick, does this mean that that would be ruled out.
Again I am just curious about this? Seems to me if there was a conflict between the scripts they shouldn't work together at all.
Thanks for your help. You guys are great