If it's visible, then it's been BlindDown'd. BlindUp removes the element from view. So a simple test for yourElement.visible() should do the trick.
Walter On Oct 8, 2008, at 9:08 AM, Garreth wrote: > > Hi, > > I'd like to use the BlindDown and BlindUp effects in a single > javascript wrapper. > > The script would detect the current state of the element and apply > either the BlindDown or BlindUp effect accordingly. > > ie > > if its down, apply Up > if its up, apply Down > > However, I can't find any way to detect the current state of the > element. > > Does anyone have any suggestions? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
