Add a hidden field to the form; have each of the links set the value of the
field to something you can check from within the action page.

> -----Original Message-----
> From: Brett Payne-Rhodes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 03, 2000 6:29 AM
> To: CF-Talk
> Subject: Re: Submitting form with Javascript
>
>
> This is a question I have been wondering about for a while myself...
> Thanks to Peter, Rob and David for their contributions, and I have
> managed to use the solution on a simple form. But what about a more
> complicated form that has three 'submit' buttons; 'Add' 'Update' and
> 'Delete'? Using the standard 'input type="submit"' method you
> differentiate between the buttons by value, but it seems that when using
> the javascript solution I don't see the 'button' that was pressed, even
> if I name the images. I had a look in Goodman's Javascript Bible but
> found little to help - but its a big book and I'll keep looking...
>
> In the meantime, can anyone shed any more light on this please?
>
> Many Thanks,
>
> Brett Payne-Rhodes
> B)
>
> "Joseph J. Sanger, M.D." wrote:
> >
> > This is simple, but I am not a javascript maven .... I wish to submit
> > a form by clicking in a link, rather than pressing the submit button.
> > Isn't this possible with some javascript function in the URL of the
> > anchor?  Could someone remind me what this should look like?  Thanks
> > very much.
> > --
> > ________________________________________________________________________
> >    Joseph J. Sanger, M.D.                     |
> >    Associate Professor of Clinical Radiology  | Phone: (212) 263 - 7410
> >    Division of Nuclear Medicine               | Fax: (212) 263-7519
> >    New York University School of Medicine     |
> [EMAIL PROTECTED]
> > ________________________________________________________________________
> >
> ------------------------------------------------------------------
> ------------------------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with
'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to