Reg,

This URL gives the HTML 4.01 Description of the input tag.

http://www.w3.org/TR/html401/interact/forms.html#h-17.4

If you page down from here to section 17.4.1, there is a description that
explains
how images can be used to submit forms.  The syntax is well defined in this
document.

-AMT

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Reg Sherwood
> Sent: Wednesday, January 05, 2000 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: JSP & Javascript
>
>
> This is more of a javascript question... sorry to clutter the newsgroup
> with it... but am still hoping someone can shed some insight.
>
> In theory this should be trivial.... all I want to do is have an image
> map perform some operation when it is clicked.  I currently have a bean
> that stes/gets properties (thanks for the help Karl) from a JSP page.
> This will happen when the user clicks the "submit" button.... now, I do
> not wish to use the HTML built in submit button, such as
>
> <INPUT TYPE=SUBMIT>
>
> I want to define my own, eg:
>
> <a href="\\" onClick="javascript: return SUBMIT();"><img border="0"
> src="../images/search.gif"></a>
>
> where SUBMIT is a javascript function that does something along the
> lines of  parent.MainWindow.document.form.submit().
> The reason being, I want to use my own button image, instead of the HTML
> defined one.  I guess the question is, can I do the submit without using
> javascript and still use my own button image? Or how do I write the HTML
> to submit the page in the same manner the built in HTML submit button
> does (and if so, how).
>
> Thanks
>
> Reg Sherwood
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to