Solved

after 20 seconds a button

Posted on 2003-11-13
5
216 Views
Last Modified: 2010-04-01
hi, i have a jsp application and i need a function where a button will appear after let's say 20 sec. that button will server as the submit button to go to another page.

but hte problem is the first page passes some parameters needed in the second page.that's why i just can't use a javascript.
is there a function that makes the button appear for a period of time.

i'll be also needing a progress bar picture,is there someone who knows where to find one?
thanks.
0
Comment
Question by:tizay
5 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 9745109
you'll have to do this with javascript, jsp cannot help you here. And yes, with javascript, you CAN do it.
0
 

Expert Comment

by:u9707118
ID: 9747894
Here is a link to a good tutorial on progress bars in JSP.

http://www.onjava.com/pub/a/onjava/2003/06/11/jsp_progressbars.html

Hope this helps!

Damian
0
 
LVL 2

Accepted Solution

by:
DidierD earned 20 total points
ID: 9770269
I don't see a reason why you can't use javascript.
You can do something like this.

<html>
<head>
<script language=javascript>

function makevisible(){
  document.all.mybutton.style.display="";
}

function test(){
  setTimeout('makevisible()',20000);  
}

function gotoOK(){
  document.yourForm.action="secondpage.jsp?param1='1'";
  document.yourForm.submit();
}

</script>
<title></title>
</head>
<body onload="test();">
<input type=button name=btn id="mybutton" value="OK" style="display:none" onclick="gotoOK()">
</body>
</html>
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Spring Tuorial 1 107
runtime exception and error differences 4 63
maven set up 2 104
struts hibernate integration example 28 113
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now