Mike Kelp wrote:
> Thanks for the response Fred.
>
> I'd still like to know if there is a way to do what I was asking
> before, but I am interested in modify style rules directly. Could you
> provide a cross-browser (scriptaculous quality) example of modify a css
> rule effectively?

Unfortunately, no.  The vaguaries of browser implementations make a
general solution impossible, though if you want only IE and Firefox,
and maybe Opera 8+, it is possible to make a reasonably comprehensive
solution for an intranet (e.g. Opera <8 didn't have a styleSheets
collection).

> For the most part, I should just need to modify the
> display property of the ".validationFail_fieldID" classes (or create
> the rule if it doesn't exist).

If that is your scheme, why not assign validationFail_fieldID as the ID
of your error element rather than the class and set the property
directly?  That's what I do now.  getElementByClassName is very much a
kludge and should only be used as a last resort (that is not an
anti-prototype.js rant, just an opinion in general, however it is
implemented).


-- 
Fred


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