On Mar 19, 6:40 pm, "T.J. Crowder" <[email protected]> wrote: > Hi, > > I'm sorry, your question isn't very clear. > > 1. What is it you're actually trying to achieve? Forget mechanisms, > what is is you want to *do*? > > 2. Function#delay works just fine in IE7 under XP. What it it you're > expecting it to do, and what is it doing instead? > > 3. Your quoted code doesn't do anything. Well, okay, it schedules the > `sleep` function to run 100ms later, but since `sleep` doesn't *do* > anything, that's going to be...subtle. > > Can you provide a bit more info? > -- > T.J. Crowder > Independent Software Consultant > tj / crowder software / comwww.crowdersoftware.com > > On Mar 19, 7:24 pm, albert kao <[email protected]> wrote: > > > > > I like to have a sleep or delay function in javascript. > > The Prototype library 1.6.1 has a delay function. > > It is working well in Firefox or Chrome but not IE 7 on windows XP. > > Please help (I cannot use newer version of windows). > > function sleep() > > { > > > } > > > sleep.delay(0.1);
I like to have my web browser to do this continuously. 1. user clicks the submit button 2. display the message "updating database" for a short time 3. new data arrives from database 4. refresh page to display new data Step 2 requires a sleep or delay time of 100ms. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
