claro — 2011-12-06T11:34:29-05:00 — #1
Greetings!! I'm new in js..I've searched that js cannot perform two onload event at the same time. I've got two sets of codes here
and here is the the problem
is there any way to get rid from error? any help would be appreciated. Thanks!
sdleihssirhc — 2011-12-06T14:55:01-05:00 — #2
I might have misunderstood the question, but there shouldn't actually be an error. In both cases, it looks like the scripts are using the "attachEvent" method for IE6-8.
That method attaches an event listener, and there's no restriction on how many listeners you can add to an element for any one event (even "onload").
...Also, why are you loading two different versions of jQuery?
aussiejohn — 2011-12-06T16:05:29-05:00 — #3
Do you perhaps have a sample page up somewhere?
Since that code is from the jQuery library, I would suggest removing the extra library definition and that ought to fix it. (Even so, I don't believe you should be getting this error as whatever that latest copy of jQuery is that you included should overwrite the previous copy.)
Try removing the extra one and see how you go.
claro — 2011-12-06T21:39:42-05:00 — #4
at the same time but the bubble navigation doesn't work properly. I searched for the solution but it says that it cant work since
there is two onload event at the same time.
Hope I'm making myself clear and right.
aussiejohn — 2011-12-06T21:46:46-05:00 — #5
You should just be able to include the code in the following order:
- jQuery Library
- jQuery Shuffle Letters plugin
- Code for Shuffling letters + Code for bubble navigation
Do you have an example page where your error is occurring? It might help give a better insight as to what is happening.
claro — 2011-12-06T22:02:50-05:00 — #6
The first two are the scripts for bubble navigation
the latter are scripts for the shuffle letters.
aussiejohn — 2011-12-06T22:19:58-05:00 — #7
Leave that one out, it's overwriting the first library and the easing plugin.
You only ever have to include the jQuery library once per page.
claro — 2011-12-06T22:22:47-05:00 — #8
thank you very much. It worked now. Looking forward to learn more.