Hi, i'm kinda new, so i've been reading and learning about prototype.

I have a problem withd ocument.observe('dom:loaded',function()
{ //...}); becaue i've got an error.
 Mozilla  told me that  document.observe is not a function.

Then i tried with

var $ready = Element.observe.curry(document, 'dom:loaded');

$ready(function(){
       $('topIndex').hide();
     }
);

And it told me that the Element.observe has no properties.

In my  .html in the <head> section i  have

<script language="javascript" type="text/javascript" src="lib/js/
scripts.js"></script>
<script language="javascript" type="text/javascript" src="lib/js/
scriptaculous-js-1.8.1/lib/prototype.js"></script>
<script language="javascript" type="text/javascript" src="lib/js/
scriptaculous-js-1.8.1/src/scriptaculous.js"></script>


I don't know why when its loading the dom it dosent charge
the .observe... what should i do?..

thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to