Diodeus a écrit :
> You don't need prototype to do this. You can do it just by setting the
> disabled property of the form elements.

That's right, however...

> document.Form1.Name.disabled=true ... or something like that.

"document.Form1" won't work everywhere, as name-based resolution isn't
uniform at the document level.

> If you want to hide something, put it in a div and use prototype to
> hide it:

The div is entirely superfluous: that's divitis.  You can hide the input
itself.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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