Solved

after 20 seconds a button

Posted on 2003-11-13
5
224 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
String format issue 13 93
Set up Wildfly 10 8 448
memory representation of int[][][] a=new int[2][][]; 10 60
eclipse buid path vs tomcat lib path 10 38
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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