• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting Time. Urgent Please.

 
padmaja mandava
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
I need to a HTML page from JSP code for every 5 seconds.
How to set the timer. Can anybody help me in this matter
Thanks
padmaja
 
khudiram Barik
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Padmaja !
You can try the folowing :--
put the following code in your jsp page within the <form> </form>.
<SCRIPT LANGUAGE="JavaScript">
setInterval('myMethod()', 5000)
</SCRIPT>

This will invoke your javaScript method in every 5 second and you can do the form.submit method to go to your html page which should be specified in your action="your.html" in the form tag.
Hope this helps.

 
padmaja mandava
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
khudiram,
Thank you. I will try that.
Padmaja
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic