Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-19
2
Medium Priority
?
299 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 200 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

Technology Partners: 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

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
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…

876 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