Microsoft
Software
Hardware
Network
Question : Rails: Visual Effect 'Blind' Toggle Help
I am using a :toggle_blind function on a DIV block as part of the return in an AJAX call. If the user does the right thing then I want the DIV to slide away. I get that to work fine. What I am wondering is if there is, rather than a toggle, a "blind_down" where if the DIV is already down it will not try to do it again. Calling a toggle just toggles the state. I am looking for something like "If it is down, do nothing; if it is up, bring the blind down."
Thanks,
Grant
Answer : Rails: Visual Effect 'Blind' Toggle Help
You can specify the individual events instead of a toggle.
Here's the list of effects:
http://wiki.script.aculo.u
s/scriptac
ulous/show
/
Combinati
onEffectsD
emo
You could always just hide the link if the div is already down, too, if you don't want them to un-hide it.
1: 2:
visual_effect(:the_div, :appear) visual_effect(:my_div, :blind_down)
Open in New Window
Select All
Random Solutions
datapump import impbp does not work
XP_SQLMAINT
Public variable persistence in Excel VBA
CSS script: How do I correct 3 col <div> script so that it works in firefox, ie, etc.
How do I restrict users from listening to streaming music with Group Policy?
what is the file that launches windows xp activation
Outlook '07 ~ 'the set of folders cannot be opened' & now won't uninstall
Once I installed service pack 3 I can no longer access the shared files folder
Reporting Services - How to Pre-populate Drop Down Parameter w/ Select All
Progress Indicator for calculations