Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create message when user click Submit button 1

Status
Not open for further replies.

blevy9

Programmer
Apr 22, 2003
16
US
My first JSP Page includes a Form with Submit button. When user clicks the button, data items on the form send to the second Web Page, specified in the FORM ACTION attribute. This Web Page retrieve data from Database to print Report and pop-up with big delay.
I need to create message on the first JSP Page: "Please Wait. Retrieving", which appears near Submit button after user click the button, so user can see, that data is retrieving. But when user return to the first JSP Page using arrow "Back" of the browser, this message must disappear.
Is it possible to do it?
 
Ja, have a div or span next to the submit button - empty to start with:
Code:
<span id=&quot;waitmsg&quot;></span>

And add the following line to your submit button's onclick handler:
Code:
document.getElementById('waitmsg').innerText = &quot;Please Wait&quot;;

[sub]Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top