I know you can modify stylesheet rules, I wonder whether a modification
could be made to 'show' to check for the existence of a stylesheet
display:none rule based on the class(es) assigned to the element and remove
it if it exists?
I guess then you'd have the problem of block vs inline but I expect that
just removing the attribute would suffice.. it would be up to the programmer
to not use the class on any other elements.
I dont really have a problem with inline style, it just makes your markup
rather messy.. and I get the flicker problem on a few of my pages.
I dont see this as something that should be part of prototype but maybe as
an overridden show function..
Gareth
On 7/26/07, cell <[EMAIL PROTECTED]> wrote:
>
>
> OK guys. Thanks for the responses. You're both right.
> The effect works fine if the CSS "display: none" is applied, BUT ONLY
> if it's applied inline. Not in the external style sheet.
>
> Cool. Thanks!
>
> On 25 Lip, 15:47, kangax <[EMAIL PROTECTED]> wrote:
> > Effect.Appear should work with "display:none" just fine
> >
> > $('anotherDiv').observe('click', function(){
> > Effect.Appear('targetDiv')})
> >
> > --
> > View this message in context:
> http://www.nabble.com/scriptaculous%3A-fade-in-in-a-hidden-element-tf...
> > Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---