Page 1 of 1

Image submit within form

Posted: Thu Dec 10, 2009 12:28 pm
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

Re: Image submit within form

Posted: Thu Dec 10, 2009 2:18 pm
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.