Michael,
This seems to work for me:
<html>
<form name="jim" action="stuff.do" enctype="multi-part/form">
<input type="file" name="filename" id="opener" style="display:none;"
onChange="document.getElementById('proxy').value=this.value">
<input type="text" id="proxy" name="justshowstexttouser" value="">
</form>
<img src="beach2.jpg" onClick="document.getElementById('opener').click();">
</html>
Cheers,
Glenn
-----Original Message-----
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 9:23 AM
To: Struts Users Mailing List
Subject: General Solution for Form Images Stymied
If anyone has a way of using javascript or anything else to allow us to
use images (gif, jpg, png, pnm) for the browse button in the code below,
you are my hero. I need this solution to provide a general taglib for
form images. Thanks a million for any assistacne
<html>
<head></head>
<body>
<form method="get" action="tim.jsp" enctype="multi-part/form">
<input type="file" name="browse">
<input type="image" name="submit" src="submit.gif">
</form>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
=======================================================
This email message is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message. If you are the
intended recipient, please be advised that the content of this message is subject to
access, review and disclosure by the sender's Email System Administrator.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]