Solved

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

Posted on 2004-08-19
2
291 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
Comment Utility
Add this line to hide it once it is clicked

this.style.visibility = "hidden"

~Hemanth
0
 
LVL 2

Author Comment

by:kalios
Comment Utility
Super... works great Hemanth....

thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now