File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread problem

 
nabi bux
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Every body iam very upset about my asinment which is that i have to used
five pictures and the each picture displayed after the 1 minutes then i have write Thread.sleep(1000) the browser shows an error please tell me how i can use sleep() method is there any concept of it
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sleep in javascript on the client side, not java on the serverside.

setTimeout('displayNextPicture()', 60*1000);

Though that's not really sleeping since it's a callback.
[ April 12, 2005: Message edited by: Yuriy Zilbergleyt ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this assignment in Java? or in JavaScript?

I have a feeling it is Java so I am moving there....

Eric
[ April 12, 2005: Message edited by: Eric Pascarello ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic