调用iframe中的上传路径
<TABLE cellSpacing=0 cellPadding=0 border=0 align=center>
<FORM name=form1 onsubmit= "return check(); " action=ordersave.asp method=post>
<tr>
<td> 名称 </td> <td> <INPUT class=bottom name=name> </td>
<TR>
<TD> 您的联系电话: </TD>
<TD> <INPUT class=bottom maxLength=20 size=28 name=phone> </TD> </TR>
.......
<tr>
<td> 上传图片/文件: </td>
<td>
<input name= "pic_url " id= "pic_url " type= "text " class= "table-title1 " size= "30 ">
<iframe ID= "editor " src= "sub_news_pic/subpic_upload.jsp " frameborder=0 scrolling=no width= "100% " height= "130 "> </iframe>
</td> </tr> </form> </table>
我想把iframe中上传图片的路径赋值给pic_url
------解决方案--------------------你可以在上传後生成session。然后要写入数据库就直接把session的值写入
------解决方案--------------------parent.document.getElementById( "pic_url ").value= "xxx "