well, I'm going on the premise that the image is inside of form1 here... in which
case
you can make it an <input type="image" src="whatever.jpg"> and that will
automatically submit the form. -- ah, wait, hold the phone, just tried something...

the <img> tag (according to my html guide) doesn't have a value option and I
believe the <input type="image"> only has value on a technicality but doesn't
actually use it, so that may be throwing something off... or, if your problem is
just that the value isn't sent, that's why. best bet may be to put the value in a
hidden input...

try things out, if you can't get it to work by today, you're welcome to drop
another email to me at [EMAIL PROTECTED] with more specifics (what the variables
are, what they're doing) and I'll take a hack at it.... Have a good day

-Daniel

paniny serou wrote:

> hello JSPkids !
>
>       so this is my problem :it looks easy
>  but ... I want to submit my FORM when I click on an
> image
>
> <img src="images/supprimer.jpg" name="supprime"
> value="<%=rsOrg.getString("ORG_ID")%>" width="9"
> height="10" onClick="javascript:form1.submit();">
>
> this code above doesn't work but it works with a
> button (see code below) :
>
> <input type="submit" name="supprime"
> value="<%=rsOrg.getString(1)%>" ></td>
>
> I tried <input type ="image" src = "..." onClick=".."
> value =<%=rsOrg.getString(1)%> >
> it doesn't work...
>
> thanks in advance,
> Paniny SEROU
>
> ___________________________________________________________
> Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
> Yahoo! Messenger : http://fr.messenger.yahoo.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to