Re: [Proto-Scripty] Re: Execute a function after another one

2010-09-23 Thread Walter Lee Davis
The ideal thing to do is to have them chain from one another, so that one calls the next, rather than setting a delay and hoping the browser gets the order correct. Take a look at defer() in the Prototype API. That's basically a way to let the browser breathe between events. If you're not

Re: [Proto-Scripty] Re: Execute a function after another one

2010-09-22 Thread Walter Lee Davis
Element.appear calls Effect.Appear(element) under the covers. Scriptaculous Effects all have a hook method that gets called after the effect has finished animating. I suspect that's what you need to do here. You can't use these extended attributes in the short-form method, so you have to

Re: [Proto-Scripty] Re: Execute a function after another one

2010-09-22 Thread Walter Lee Davis
Try adding Protaculous defer or delay to the second call, just to give the browser a moment to acknowledge that the newly shown element is really there. Form.focusFirstElement.delay(0.1,'my-form'); something like that... Walter On Sep 22, 2010, at 10:50 AM, Kupido wrote: Hi Walter, your