Set a boolean in your javascript to true when the page is loading. When
they click on the link your function checks for the value and if it is true
it will process the "click". While processing the click it will change the
value to false so no more clicks will be processed.
<script language="javascript">
var x = true;
function processClick() {
if (x) {
x = false;
. . . do rest of processing . . .
}
}
</script>
Dan
-----Original Message-----
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 11:27 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Javascript Question
Actually what I want is the opposite. I want it to be a link until they
click it so the order is not submitted more than one time. Do you know how
to do this?
Robert Everland III
Web Developer
Dixon Ticonderoga
-----Original Message-----
From: Jamie Keane [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 11:55 AM
To: [EMAIL PROTECTED]
Subject: Re: Javascript Question
Here's what I'd do.
Make the image an HREF pointing to "#", and calls a function when clicked.
Like so:
function doMyStuff()
{
document.image.src = "newimage.jpg";
document.form.submit();
}
I think this will work.
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC 28270
www.solutionmasters.com
704.563.5559 x 228 Voice
704.849.9291 Fax
-----Original Message-----
From: Robert Everland <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Thursday, August 31, 2000 11:20 AM
Subject: OT: Javascript Question
> I can't remember where or the name of the javascript forum off of
>cf-talk but I figured I may as well as my question and then have someone
>tell me where to do. I have a form button that is an image. I put some
>javascript in there so that when I click on it, it changes the image. What
I
>want to do now is make it so that image is not clickable that way no one
can
>keep clicking on submit. Anyone know how to do this, it can't be a href tag
>becuase I have to pass form variables.
>
>
>Robert Everland III
>Web Developer
>Dixon Ticonderoga
>---------------------------------------------------------------------------
---
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.