IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes Prototype delay not working in IE 7 on windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Prototype delay not working in IE 7 on windows XP" Watch "Prototype delay not working in IE 7 on windows XP" New topic
Author

Prototype delay not working in IE 7 on windows XP

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 212
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).

Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

I do not understand your syntax. What defines the delay method of the sleep function? It looks like sleep is an empty function.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 212
Bear Bibeault wrote:I do not understand your syntax. What defines the delay method of the sleep function? It looks like sleep is an empty function.


The Prototype delay function define this syntax.
sleep is a user-defined function which can do nothing in this case.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

Ah yes, one of the things I've come to intensely dislike about Prototype -- ninja changing of standard JavaScript classes; in this case Function.

Well, if it's working in all browsers but IE7, then it's likely a Prototype bug that you should bring to their attention.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Make sure you are not cached and have an old version of your code in IE.

Eric
 
 
subject: Prototype delay not working in IE 7 on windows XP
 
Threads others viewed
Win XP, IE
text field in stored procedure
Bookmark an URL with encoded values
redirecting the maven output to file
windows XP with windows 7
IntelliJ Java IDE