Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

after 20 seconds a button

Posted on 2003-11-13
5
Medium Priority
?
237 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

610 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