Solved

after 20 seconds a button

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How To Remove a Principal from HttpServletRequest 4 52
JSP Popup page 2 131
Books that can get me started on JAVA 2 105
how to add new optional parameter to JSP 1 49
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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