|
How to cancel an effect: msg#00011lang.ruby.rails.spinoffs
Hi all, I have a situation where I want to display an error message, and have it fade away after a 2 second delay. My problem is an impatient user could click buttons so fast that multiple Fade effects will be in play. I believe script.aculo.us can supports canceling existing effects before starting a new one, but couldn't find any examples. I tried something like this but it doesn't seem to work: var old_effect; if (old_effect) old_effect.cancel old_effect = new Effect.Fade($('error_msg')); Am I close? Thanks! --Dave. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Drag & Scroll: 00011, James Peters |
|---|---|
| Next by Date: | new Ajax.Updater - some issues - please help: 00011, Marco M. Jaeger |
| Previous by Thread: | Drag & Scrolli: 00011, James Peters |
| Next by Thread: | Re: How to cancel an effect: 00011, Thomas Fuchs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |