document.observe is not function

1,566 views
Skip to first unread message

hari bhat

unread,
Sep 16, 2010, 2:54:40 AM9/16/10
to Prototype & script.aculo.us
I have included all the java script tags in header but in global.js i
have

document.observe("dom:loaded", function() {
#Stuff Here
}
I am getting error

document.observe is not function.In firefox

In IE 8 m getting error like Object doesnt support this method or
property.Any help appreciated.


Regards
Hari

T.J. Crowder

unread,
Sep 16, 2010, 3:15:44 AM9/16/10
to Prototype & script.aculo.us
Hi,

That means you're not successfully linking to the prototype.js file.
Double-check your script tag for Prototype and ensure that it's really
referring to the path you think it is. For things like this, the
script debuggers available from Microsoft (Visual Studio, and Script
Debugger) are useful and would probably show you that you have an
error in your script tag.

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www / crowder software / com
Reply all
Reply to author
Forward
0 new messages