?
Solved

after 20 seconds a button

Posted on 2003-11-13
5
Medium Priority
?
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 80 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introducing Priority Question, our latest feature.
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

764 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