I have two inline effects.... Effect.BlindDown(''form'', {duration:0.2}), Field.focus(''user_name'') Now, in IE7, field wont get focused because form element is not visible at the time execution. How can I delay second (Field.focus) thing by 0.3 so it wont clash? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5 Apr 2008, at 16:56, Vapor .. wrote:> > I have two inline effects.... > > Effect.BlindDown(''form'', {duration:0.2}), Field.focus(''user_name'') > > Now, in IE7, field wont get focused because form element is not > visible > at the time execution. > How can I delay second (Field.focus) thing by 0.3 so it wont clash?You don''t actually want to delay, you want it to run after the first one. if it was actually an effect, you could probably use the effect queue for that, but Field.focus isn''t. Anyway, what you can do is Effect.BlindDown(''form'', {duration: 0.2, afterFinish: function() {Field.focus(''user_name'')}}) Fred> > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
supercool thanks Fred! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---