A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Problem with html image tag inside input tag
Joined: Dec 28, 2005
Mar 06, 2008 13:12:00
I have a problem displaying image on the button tag
[input type="button" value=" [img src='images/arrow.jsp' ] " on click="function1()" / ]
Its not picking up the image value instead it displays whole tag...instead of processing image tag...
any correct way of defining this so that the img tag is processed....
or any other way of displaying an img on the button..
i know that [input type="image" src="path" ]tag is present but it is by default submit button..so after doing the on click funtion it is submitting the form which i dont want to...
Please suggest any other way...
Joined: Dec 11, 2004
Mar 06, 2008 14:14:00
That's not the way to do that.
Either use an <input type="image" tag or put the image in the body of the button tag.
<button ...><image src=.../></button>
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Problem with html image tag inside input tag
Disable and Enable a Submit Button
ImageButton with DispatchAction
assign values to form elements dynamically?
How to hide image path in JSP
Buttons in same form hitting different servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014