RE: onSubmit vs. <.input type="submit"

by Klaas De Waele <klaas(at)gracegraphics.be>

 Date:  Tue, 3 Jul 2001 16:40:01 +0200
 To:  "'Lara J. Fabans'" <lara(at)lodestone-sw.com>,
"'Peter-Paul Koch'" <gassinaumasis(at)hotmail.com>,
"'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
simple question, simple answer...

DON'T use a gif with an href.

do the following:

<.input type=image src=blah.gif width=xx height=xx>

No need for javascript actions then, as input type image has the same
function as a submit button.  Simulate a link by using { cursor: hand; } (IE
only)


- Kayjey -


-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens Lara J. Fabans
Verzonden: dinsdag 3 juli 2001 14:39
Aan: Peter-Paul Koch; hwg-techniques(at)hwg.org
Onderwerp: Re: onSubmit vs. <.input type="submit"


Hi,

I guess I wasn't clear.  They have two submit buttons and want to convert 
them to two
gif image buttons using onclick=submit()

How can submit() convey the same information as an HTMLsubmit button with 
respect to the name?

Thanks!

Lara

At 11:03 AM 7/3/2001 +0000, Peter-Paul Koch wrote:

>>>Client had <.input id="mediaMaint" name="mediaMaint" type=submit
>>>value="Special String" tabindex="3">
>>>
>>>There's two input buttons on this page and each has a different name.
>>>
>>>How can I use submit() in a similar fashion?  How do I pass the name/id 
>>>as to which "button" was clicked?
>
>If you put two submit buttons in the page, like
>
><.input id="mediaMaint" name="mediaMaint" type=submit
>value="Special String" tabindex="3">
>
><.input id="mediaMaint2" name="mediaMaint2" type=submit
>value="Special String" tabindex="3">
>
>the form sends the name of the pressed button with the form. So in the 
>server side program you can see which one is pressed. No special scripts 
>needed.
>
>ppk
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>

---------------------
Lara J. Fabans
Lodestone Software, Inc
lara(at)lodestone-sw.com

 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.