Solved

Want to hide the submit image button after clicking it in the webform

Posted on 2004-08-19
2
294 Views
Last Modified: 2013-12-18
Hi I've a webform and have a image called submit which has the following code in it:

var Yes = submitform();
if (Yes)
{
  if (confirm('Press OK to Save & Process this request')) {
          document.forms["Content"].submit();
  }  
}

Everything works fine.. But the problem is sometmes the server response is slow and when the user clicks the submit button, there is a long delay before he gets to the confirmation form.  In this case the user is pressing submit button multiple times and multiple requests are being generated.
I want to hide the submit button as soon as the following happens.

After the user clicks OK to the above confirmation message  ==> confirm('Press OK to Save & Process this request')

How can this be done?
please advise
thanks
Kalios
0
Comment
Question by:kalios
2 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 50 total points
ID: 11845465
Add this line to hide it once it is clicked

this.style.visibility = "hidden"

~Hemanth
0
 
LVL 2

Author Comment

by:kalios
ID: 11845763
Super... works great Hemanth....

thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
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…
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 …

810 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