[Seasar-user:10957] Re: uploadfile

Shinpei Ohtani [E-MAIL ADDRESS DELETED]
2007年 10月 11日 (木) 17:23:22 JST


Hi,

Let me see your page class and html.

2007/10/11, 川赤 <[E-MAIL ADDRESS DELETED]>:
> I want to upload file,but i don't want to display the inputtext and button
> as system designed ,so i hiddened it .
> I'd like to place a button to call the uploadfile button which is hidden.
>
> My code is like this:
>
> <x:inputFileUpload
>   id="applyFile"  style="display:none" name="applyFile"
>   value="#{Apply_ListPage.applyFile}"
> />
>  <input type="submit"  name="applyupload" value="¥¢¥Ã¥×¥í©`¥É"
>    onclick="uploadfile('doApplyUpload','applyFile')"
> id="doApplyUpload"/>
>
>
> function uploadfile(btna, btnb) {
>
>  var buttona = document.getElementsByName(btna);
>  var buttonb = document.getElementsByName(btnb);
>  buttonb.click();
> }
> It doesn't work. Why?
>
> Is there any other way to achieve my goal.
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
>


-- 
=============================
Shinpei Ohtani
[E-MAIL ADDRESS DELETED]
=============================


Seasar-user メーリングリストの案内