simple question

Discussions

Web tier: servlets, JSP, Web frameworks: simple question

  1. simple question (3 messages)

    I'm only posting this here because I'm working in JSP but I actually have a HTML problem. How do you put an image around a form submit button. i.e. instead of a grey submit button I want to be able to click on a JPEG image using the post method in the form. Cheers!!

    Threaded Messages (3)

  2. simple question[ Go to top ]

    You can create an anchor tag that calls a javascript function to perform the submit. Something like:

    <a href="javascript:do_submit();"><img ...></a>

    The javascript function then performs a submit:

    document.MyForm.submit();

    RG
  3. simple question[ Go to top ]

    sorry, the anchor tag got scrambled. trying again...

    [a href="javascript:do_submit();"][img ...][/a]

    just substitute angle brackets for the square ones.
  4. simple question[ Go to top ]

    Try this,

     <input type="image" src="<IMAGE URL>" height=xx width=xx>

    -j