| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1308 人关注过本帖
标题:寻求iframe传值问题解决方案
取消只看楼主 加入收藏
steven1013
Rank: 2
等 级:论坛游民
帖 子:132
专家分:20
注 册:2007-8-11
结帖率:100%
收藏
 问题点数:0 回复次数:3 
寻求iframe传值问题解决方案
图片附件: 游客没有浏览图片的权限,请 登录注册

我在选择好图片后点击上传,如何能将iframe中的图片地址传递到主表单中1的位置,
这样我就可以把照片地址上传到数据库了……
主表单名称:myform iframe名称:myiframe


[此贴子已经被作者于2007-9-13 14:33:58编辑过]

搜索更多相关主题的帖子: iframe 传值 问题解决 方案 
2007-09-13 14:31
steven1013
Rank: 2
等 级:论坛游民
帖 子:132
专家分:20
注 册:2007-8-11
收藏
得分:0 

当我上传后 iframe有个变量 <%=newname%>
其实我那个1要的就是这个值
我想问下 怎么把这个 变量值提取出来


2007-09-13 17:17
steven1013
Rank: 2
等 级:论坛游民
帖 子:132
专家分:20
注 册:2007-8-11
收藏
得分:0 

<html><head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body><form action="iframetest2" name="myform" method=post>
<table border="1" width="19%" id="table1" height="253" cellspacing="0" cellpadding="0">
<tr>
<td height="185" align="left" valign="top">
<p align="center">
<iframe id="GuestList" height="177" width="100%" scrolling="no" marginheight="1" marginwidth="1"frameborder="0" src=upfile/upload.asp name="iframe1">
</iframe></td>
</tr>
<tr>
<td height="44">
<p align="center">
<input type="text" name="b" id="pic" size="23" ></td>
</tr>
<tr>
<td>
<p align="center"><input type="submit" value="提交" name="B1">&nbsp;
<input type="reset" value="重置" name="B2"></td>
</tr>
</table>


</form>

</body>

</html>


2007-09-17 08:09
steven1013
Rank: 2
等 级:论坛游民
帖 子:132
专家分:20
注 册:2007-8-11
收藏
得分:0 
yms123
你简直是个天才……
问题终于解决了……

非常感谢……

2007-09-18 16:06
快速回复:寻求iframe传值问题解决方案
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012905 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved