Image submit within form

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
sloppyjoe
Forum Newbie
Posts: 20
Joined: Thu Jul 09, 2009 3:43 pm

Image submit within form

Post by sloppyjoe »

Hi, First of all apologies if this should be in graphics, but I assumme it will be accepted here as its mainly to do with HTML. I am going to create an SVG image. That changes using onmouseover in JS. However when its clicked i want it to submit the form instead of my current submit button.

At thee moment my form ends like this...

Code: Select all

 
                <input type="submit" value="Post My Tweet" />
                </td></tr>
    </form>
</table>
 
What would it need to be if the submit was to be an SVG wth the name of face?
Thanks in advance
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Image submit within form

Post by pickle »

Never used an SVG file, but you say you can interact with it via Javascript. Just add a click listener that submits the form.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply