Javascript Error

I am using document.observe(“dom:loaded”, function() in global.js ,Its
giving error document.observe is not an


Have you included the prototype javascript files in your layout?

You can add this line in element of your layout file

<%= javascript_include_tag :defaults %>

Also global.js should be loaded after <%=
javascript_include_tag :defaults %> .

Robert Pankowecki

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs