I was wondering if it was possible in Prototype/Scriptaculous to run an effect when a link is clicked, then go to that page, or if it was possible to have an effect run when the page unloads. I have tried <body onunload="new Effect.Fade("whatever");> and some prototype page exit events, could get a alert("") function to work, but not the effects. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Have you tried ''onbeforeunload''? - kangax On Apr 24, 7:52 pm, Kyle <hotchk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I was wondering if it was possible in Prototype/Scriptaculous to run > an effect when a link is clicked, then go to that page, or if it was > possible to have an effect run when the page unloads. > > I have tried <body onunload="new Effect.Fade("whatever");> and some > prototype page exit events, could get a alert("") function to work, > but not the effects. Any ideas?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
most effects allow you to pass an "afterFinish" callback where you could tell the page to change. http://wiki.script.aculo.us/scriptaculous/show/CoreEffects --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I tried it, still nothing... On Apr 24, 9:47 pm, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Have you tried ''onbeforeunload''? > > - kangax > > On Apr 24, 7:52 pm, Kyle <hotchk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I was wondering if it was possible in Prototype/Scriptaculous to run > > an effect when a link is clicked, then go to that page, or if it was > > possible to have an effect run when the page unloads. > > > I have tried <body onunload="new Effect.Fade("whatever");> and some > > prototype page exit events, could get a alert("") function to work, > > but not the effects. Any ideas?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I did, still nothing :P Maybe it just doesn''t work in the framework... On Apr 24, 9:47 pm, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Have you tried ''onbeforeunload''? > > - kangax > > On Apr 24, 7:52 pm, Kyle <hotchk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I was wondering if it was possible in Prototype/Scriptaculous to run > > an effect when a link is clicked, then go to that page, or if it was > > possible to have an effect run when the page unloads. > > > I have tried <body onunload="new Effect.Fade("whatever");> and some > > prototype page exit events, could get a alert("") function to work, > > but not the effects. Any ideas?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---