add submit functionality to the img button

add submit functionality to the img button

Post by alcoo » Thu, 26 Jul 2007 19:05:24


hi,
I would like use a image button like a submit button in a form.
it is possible to do

i.e. (in the end of a form)

<a href="" onClick="funcSubmit()"><img src="../immagini/save.png"
alt="Save" /></a>
I hope in your suggestion


bye
 
 
 

add submit functionality to the img button

Post by Randy Web » Thu, 26 Jul 2007 22:09:34

alcool said the following on 7/25/2007 6:05 AM:

Umm, did you try it?
<http://www.yqcomputer.com/
Javascript Best Practices - http://www.yqcomputer.com/

 
 
 

add submit functionality to the img button

Post by RobG » Thu, 26 Jul 2007 22:09:57


> alt="Save" /></a>
If you were to do that, why bother with the A element?

<

And those without script support, or for whom your script doesn't
work, can't submit the form.


Rob
 
 
 

add submit functionality to the img button

Post by Rik » Thu, 26 Jul 2007 22:16:05


Just curious, why is this not ok for your purpose:
<
 
 
 

add submit functionality to the img button

Post by The Natura » Fri, 27 Jul 2007 09:18:46


I know of at least one site where the javascript is so broswer dependent
that that is effectively the case. Still has to be viewed with IE6.
>><
 
 
 

add submit functionality to the img button

Post by Randy Web » Fri, 27 Jul 2007 11:50:19

The Natural Philosopher said the following on 7/25/2007 8:18 PM:


<snip>


IE only sites are a dime a dozen on the web. All they are good for is to
show the ignorance of designing an IE only site.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://www.yqcomputer.com/
Javascript Best Practices - http://www.yqcomputer.com/
 
 
 

add submit functionality to the img button

Post by Thomas 'Po » Fri, 03 Aug 2007 00:11:34


It can only be being backwards-compatible to pre HTML-4-UAs with the
tradeoff of not providing graceful degradation for script-incapable UAs.


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not the
best source of advice on designing systems that use javascript.
-- Richard Cornford,<