首页 新闻 会员 周边

在firefox 中 file 用jquery .val() 得到的值只是文件名???不是路径??

0
悬赏园豆:20 [已关闭问题]

    <div  id='floatBox'>
  <table border='0' cellspacing='0' cellpadding='0' style='width: 550px; height:20px;'>
 <tr style='height:30px; background-image:url(../../images/window_title_bg.gif)'>
 <td class='orareg' style=' height:30px; line-height:30px; float:left; padding-left:10px; text-align:left; font-size:14px; font-weight:bolder'>上传图片</td>
 <td style='text-align:right'><img src='../../images/icon_close.gif' onclick='colImg()' /></td></tr>
 <tr height='30px'> <td height='30px'></td> </tr><tr>
 <td  style='text-align:center'>
 上传路径:
<span style=' padding-right:10px;'> <input id='fuImage' type='file' style='width: 194px; height: 20px;' /></span>
<span style='padding-right:10px;'>  
 <input id='btnUpload' type='button' value='上传'  style='height:21px; width:50px;'
 onclick="$.post('../handlers/uploadFile.ashx',{fuImage:$('#fuImage').val(),mode:'update'},function(data){$('#Hphotodiv').html(data);
$('#floatBox').css('display', 'none');
$('#floatBoxBg').css('display', 'none');
$('#Person_ContentS').css('display','block');})"/></span>
</td></tr><tr>
<td height='30px' style='text-align:center'>照片尺寸90*110px,大小不能超过300k</td></tr></table>
</div>

︶ㄣ沬唻ツ的主页 ︶ㄣ沬唻ツ | 初学一级 | 园豆:165
提问于:2010-04-19 15:29
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册