Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Javascript: Disable double submiting
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 10 June 2001 :  13:47:18  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I have an image that is used to submit a form. this form sometimes takes a couple minutes to get submited so i would like to make the image disappear when the form is submit. does anyone know the javascript for this? i know how to do it with a submit button.

brad

oh yea here is the html code i use for my image right now...

<a href="/exhibitparts/store/checkout/place_order.asp" onMouseOver="over('NextStep','/exhibitparts/images/next_step_red.gif');" onMouseOut="out('NextStep','/exhibitparts/images/next_step_blue.gif');"><img SRC="/exhibitparts/images/next_step_blue.gif" BORDER="0" HSPACE="0" VSPACE="0" ALT="Next Step" name="NextStep"></a>


Brad

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  09:26:39  Show Profile  Visit tilttek's Homepage
quote:

I have an image that is used to submit a form. this form sometimes takes a couple minutes to get submited so i would like to make the image disappear when the form is submit. does anyone know the javascript for this? i know how to do it with a submit button.
<a href="/exhibitparts/store/checkout/place_order.asp" onMouseOver="over('NextStep','/exhibitparts/images/next_step_red.gif');" onMouseOut="out('NextStep','/exhibitparts/images/next_step_blue.gif');"><img SRC="/exhibitparts/images/next_step_blue.gif" BORDER="0" HSPACE="0" VSPACE="0" ALT="Next Step" name="NextStep"></a>



There is many way... Something like:

<a href... onClick="out('NextStep','/exhibitparts/images/next_step_invisible.gif');">

or
 
for IE... For NS 4.7 and 6 I have to look
<a href... onClick="document.all.Tags("IMG")("NextStep").style.display = "None";">




Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 11 June 2001 :  11:12:52  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
i was thinking about this, and tried it, but what happens is that it deletes the image, then when the mouse goes off the image, it puts the image back into the page.

if you want, i can make a sample html page for you to see exactly how it works with all the html, javascript, and everything
quote:

There is many way... Something like:

<a href... onClick="out('NextStep','/exhibitparts/images/next_step_invisible.gif');">




Brad
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  11:59:36  Show Profile  Visit tilttek's Homepage
quote:

if you want, i can make a sample html page for you to see exactly how it works with all the html, javascript, and everything



Could be nice... Will try it tonight.


Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 11 June 2001 :  12:04:33  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
you can just view this page...

http://www.exhibitparts.com/exhibitparts/account/login.asp

all images that are used as submit buttons basically work the same way, but id like it when they click submit it wont let them submit and other buttons.

Brad
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07