I don't think this is a Struts related issue.

Just don't use "document.formName" in your javascript if you want
HTML working with other browsers than MSIE.

If you need to handle onClick event, try <form id="myForm">
and "document.getElementById['myForm']" in your onClick handler
instead.

Pavel

On Tue, 10 Aug 2004, Michael McGrady wrote:

> Code like
> 
> <form name="formPrincipal" method="post" action="/whatever" 
> enctype='multipart/form-data'>
>   <input type="file" name="PHOTO1" style="display:none;">
>   <input type="text" name="file">
>    <img
>      align=middle
>      name="Parcourir"
>      src="../images/parcourir.gif"
>      border="0"
>      onClick="document.formPrincipal.PHOTO1.click(); 
> document.formPrincipal.file.value=document.formPrincipal.PHOTO1.value;">
>   <input type='button' value='Submit2' 
> onclick='document.formPrincipal.submit();'>
> </form>
> 
> works with Internet Explorer but not with other browsers.  Anyone know 
> solutions for other browsers.  I assume that there is a struts workaround 
> as well.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to