RE: Image reset button

2004-05-11 Thread Philip Arnold
> From: Robert Orlini
> 
> Is there a way to make an image button to function as a reset button?
> 
> Here is a SUBMIT as an image: 
> src="" name="submit2" value="submit2">
> 
> How would I revise this w/an image?
> 

Have an image and a JS onClick calling document.form.reset()

I think that'll work, but I've not tested it
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Image reset button

2004-05-11 Thread Charlie Griefer


- Original Message - 
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 8:49 AM
Subject: Image reset button

> Is there a way to make an image button to function as a reset button?
>
> Here is a SUBMIT as an image: 
name="submit2" value="submit2">
>
> How would I revise this w/an image?
> 
>
> Thanks.
>
> Robert O.
> HWW
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Marlon Moyer
You could use this:


src="">

-- 
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com

> -Original Message-
> From: Robert Orlini [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 10:49 AM
> To: CF-Talk
> Subject: Image reset button
> 
> Is there a way to make an image button to function as a reset button?
> 
> Here is a SUBMIT as an image: 
src="">
> name="submit2" value="submit2">
> 
> How would I revise this w/an image?
> 
> 
> Thanks.
> 
> Robert O.
> HWW
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Marlon Moyer
Actually, instead of background-color:#fff, use background:transparent

The neat benefit of this is that you still get the depressed movement
when you click the button/image.

-- 
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com

> -Original Message-
> From: Marlon Moyer
> Sent: Tuesday, May 11, 2004 11:05 AM
> To: CF-Talk
> Subject: RE: Image reset button
> 
> You could use this:
> 
> 
> src="">
> 
> --
> Marlon Moyer, Sr. Internet Developer
> American Contractors Insurance Group
> phone: 972.687.9445
> fax: 972.687.0607
> mailto:[EMAIL PROTECTED]
> www.acig.com
> 
> 
> > -Original Message-
> > From: Robert Orlini [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 11, 2004 10:49 AM
> > To: CF-Talk
> > Subject: Image reset button
> >
> > Is there a way to make an image button to function as a reset
button?
> >
> > Here is a SUBMIT as an image: 
> src="">
> > name="submit2" value="submit2">
> >
> > How would I revise this w/an image?
> > 
> >
> > Thanks.
> >
> > Robert O.
> > HWW
> >
> >
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Robert Orlini
Thank you Marlon. Does this  function work in Netscape as well?

 
RO

-Original Message-
From: Marlon Moyer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 12:05 PM
To: CF-Talk
Subject: RE: Image reset button

You could use this:


src="">

-- 
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com

> -Original Message-
> From: Robert Orlini [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 10:49 AM
> To: CF-Talk
> Subject: Image reset button
> 
> Is there a way to make an image button to function as a reset button?
> 
> Here is a SUBMIT as an image: 
src="">
> name="submit2" value="submit2">
> 
> How would I revise this w/an image?
> 
> 
> Thanks.
> 
> Robert O.
> HWW
> 
> 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Burns, John D
Isn't that IE only?

John 

-Original Message-
From: Marlon Moyer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 11, 2004 12:09 PM
To: CF-Talk
Subject: RE: Image reset button

Actually, instead of background-color:#fff, use background:transparent

The neat benefit of this is that you still get the depressed movement
when you click the button/image.

--
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com

> -Original Message-
> From: Marlon Moyer
> Sent: Tuesday, May 11, 2004 11:05 AM
> To: CF-Talk
> Subject: RE: Image reset button
> 
> You could use this:
> 
> 
> src="">
> 
> --
> Marlon Moyer, Sr. Internet Developer
> American Contractors Insurance Group
> phone: 972.687.9445
> fax: 972.687.0607
> mailto:[EMAIL PROTECTED]
> www.acig.com
> 
> 
> > -Original Message-
> > From: Robert Orlini [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 11, 2004 10:49 AM
> > To: CF-Talk
> > Subject: Image reset button
> >
> > Is there a way to make an image button to function as a reset
button?
> >
> > Here is a SUBMIT as an image: 
> src="">
> > name="submit2" value="submit2">
> >
> > How would I revise this w/an image?
> > 
> >
> > Thanks.
> >
> > Robert O.
> > HWW
> >
> >
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Robert Orlini
Thanks Charles. I get a _javascript_ error when I click the button though.

 
RO

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 12:04 PM
To: CF-Talk
Subject: Re: Image reset button



- Original Message - 
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 8:49 AM
Subject: Image reset button

> Is there a way to make an image button to function as a reset button?
>
> Here is a SUBMIT as an image: 
name="submit2" value="submit2">
>
> How would I revise this w/an image?
> 
>
> Thanks.
>
> Robert O.
> HWW
>
> 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Philip Arnold
> From: Robert Orlini
> 
> Thanks Charles. I get a _javascript_ error when I click the 
> button though.

In Charles' example, the form name was "myFormName"

If your form wasn't named that, then it would error
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Image reset button

2004-05-11 Thread Charlie Griefer
dumb question (bear with me)...but did you change the onclick attributes?
myFormName should be the actual name of your form (?)

- Original Message - 
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 9:42 AM
Subject: RE: Image reset button

> Thanks Charles. I get a _javascript_ error when I click the button though.
>
> RO
>
> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 12:04 PM
> To: CF-Talk
> Subject: Re: Image reset button
>
>
> 
>
> - Original Message - 
> From: "Robert Orlini" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 11, 2004 8:49 AM
> Subject: Image reset button
>
> > Is there a way to make an image button to function as a reset button?
> >
> > Here is a SUBMIT as an image: 
src="">
> name="submit2" value="submit2">
> >
> > How would I revise this w/an image?
> > 
> >
> > Thanks.
> >
> > Robert O.
> > HWW
> >
> >
>   _
>
>
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Robert Orlini
That's what happens to newbies - me culpa. I will change it and thanks for the help

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 1:02 PM
To: CF-Talk
Subject: Re: Image reset button

dumb question (bear with me)...but did you change the onclick attributes?
myFormName should be the actual name of your form (?)

- Original Message - 
From: "Robert Orlini" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 9:42 AM
Subject: RE: Image reset button

> Thanks Charles. I get a _javascript_ error when I click the button though.
>
> RO
>
> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 12:04 PM
> To: CF-Talk
> Subject: Re: Image reset button
>
>
> 
>
> - Original Message - 
> From: "Robert Orlini" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 11, 2004 8:49 AM
> Subject: Image reset button
>
> > Is there a way to make an image button to function as a reset button?
> >
> > Here is a SUBMIT as an image: 
src="">
> name="submit2" value="submit2">
> >
> > How would I revise this w/an image?
> > 
> >
> > Thanks.
> >
> > Robert O.
> > HWW
> >
> >
>   _
>
>
>
> 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Image reset button

2004-05-11 Thread Marlon Moyer
Nope, it's part of the HTML 4 spec, but netscape 4 doesn't support it.
Didn't even think of that since my company decided not to support that
browser anymore.  Good news is that mozilla/gecko supports it :)

-- 
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com

> -Original Message-
> From: Robert Orlini [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 11:38 AM
> To: CF-Talk
> Subject: RE: Image reset button
> 
> Thank you Marlon. Does this  function work in Netscape as
well?
> 
> RO
> 
> -Original Message-
> From: Marlon Moyer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 12:05 PM
> To: CF-Talk
> Subject: RE: Image reset button
> 
> 
> You could use this:
> 
> 
> src="">
> 
> --
> Marlon Moyer, Sr. Internet Developer
> American Contractors Insurance Group
> phone: 972.687.9445
> fax: 972.687.0607
> mailto:[EMAIL PROTECTED]
> www.acig.com
> 
> > -Original Message-
> > From: Robert Orlini [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 11, 2004 10:49 AM
> > To: CF-Talk
> > Subject: Image reset button
> >
> > Is there a way to make an image button to function as a reset
button?
> >
> > Here is a SUBMIT as an image: 
> src="">
> > name="submit2" value="submit2">
> >
> > How would I revise this w/an image?
> > 
> >
> > Thanks.
> >
> > Robert O.
> > HWW
> >
> >
>   _
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]