This is the only case I know of that requires inline styles. All other Prototype/s.a.u.-related style manipulations do not need a predefined inline-originating value.
On the event handler side, you're correct in an unobstrusive JS context (the only one worth using!). This is due to the combination of the following issues: 1. Unobstrusive JS mandates code being in another file. 2. The link to this file should be done using script tags *in the head*; putting some in the body is technically allowed, but frowned upon. 3. This other file will parse & execute at load time, which is when the script tag is found, which is before the rest of the document (and the body) is parsed; therefore, the DOM is mostly empty at this point. Hence, you would have to resort to page load completion. Which is a bother for pre-hiding. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
