Solved

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

Posted on 2004-08-19
2
297 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 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

Independent Software Vendors: 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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

615 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