Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-08-19
2
Medium Priority
?
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

730 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