[Seasar-user:10952] uploadfile

=?GB2312?B?wO7A1g==?= [E-MAIL ADDRESS DELETED]
2007年 10月 11日 (木) 15:42:55 JST


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.
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20071011/8652cbc3/attachment.html 


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