Hi there,

  maybe will sound you naif but I've surprisingly found today that
someElement.disable() can't be used for elements that are not inside a
form.

  It seems that one can disable and enable form elements but what
about doing that on elements that are not in a form?

  One possible case occurs when you have elements that do commands,
buttons for instance (not form OS buttons but web application's ones)
that should be disabled when some other element's state forbids that
button's command.

  Right now I see two alternatives:

  A) You make all your application inside a big form (which is
guaranteed that will lead to nesting forms problems)
  B) you implement a way to set the disabled state in any element
(different image, not to trigger it's command, etc)

  Anybody knows another unconfusive and unhakish way to do such a
thing?

  thanks,

Sebastian


--~--~---------~--~----~------------~-------~--~----~
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