views:

22

answers:

2

I use prototype ver 1.6.0.2

Event.observer(window,'load',function(){
     function1();// function with ajax request
     function2();//another function with ajax request
});

It work on FireFox,Chrome but in Opera it work strange Func2 and fucnc2 not runing but if page scroll down it runing both function immediately

Plz help. Thanks.

A: 

may be you include the javascript in the top of the file.

My be javascript files are not properly loded

Try to include it in the end of the file, and try.

zod
Not worked ((( same situation
Crowid
+1  A: 

function is:

Event.observe(element, eventName, handler)

not:

Event.observer(element, eventName, handler)

@see: http://www.prototypejs.org/api/event/observe

(Opera is always right) :-)