| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 541 人关注过本帖
标题:用Fckditor如何传值
只看楼主 加入收藏
solon
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-4-18
收藏
 问题点数:0 回复次数:7 
用Fckditor如何传值

我有一个添加页面adddetail.asp里边有
<iframe name="ad" frameborder=0 src=uploadfacetest.asp></iframe>
<input id="photo" name="photo">


uploadfacetest.asp页面的代码是
<script language=javascript>
function b()
{
parent.document.all("photo").value=showModalDialog('sample01.asp','blank_','scrollbars=yes,resizable=yes,width=650,height=450');
}
</script>
<form name="form" method="post" action="" enctype="multipart/form-data" >
<input type="hidden" name="CopyrightInfo" value="">
<input type="hidden" name="photo" value="photo">
<input type="button" value="点我" onClick="b()";>
</form>
跳转到sample01.asp
<% Option Explicit %>
<script language=javascript>
function ad()
{
returnValue=document.all("FCKeditor1").value;
}
</script>
<!-- #INCLUDE file="../../fckeditor.asp" -->
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<form action="sampleposteddata.asp" method="post" target="_blank">
<%
Dim sBasePath
sBasePath = Request.ServerVariables("PATH_INFO")
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
dim sForm

Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = sBasePath
oFCKeditor.ToolbarSet = "Default"

oFCKeditor.Value =" ddd "
oFCKeditor.Create "FCKeditor1"
%>
<br />
<input type="submit" value="Submit"/>
</form>

传到photo后得到的值怎么老是初始值,真实值传到sampleposteddata.asp页后就过不去了

搜索更多相关主题的帖子: Fckditor 传值 
2007-04-20 11:52
solon
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-4-18
收藏
得分:0 
我是要把值传到adddetail.asp页面的&lt;input id="photo" name="photo"&gt;内
2007-04-20 11:56
solon
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-4-18
收藏
得分:0 
没人来看吗,我在等啊
2007-04-20 12:03
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 
function ad()
{
window.returnValue = document.all("FCKeditor1").value;
}

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2007-04-20 12:44
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 
parent.document.all("photo").value=showModalDialog('sample01.asp',window,'scrollbars=yes,resizable=yes,width=650,height=450');

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2007-04-20 12:45
solon
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-4-18
收藏
得分:0 

还是传不上去啊,传过去的结果还是undefined

2007-04-20 12:51
solon
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-4-18
收藏
得分:0 
VANhEmrM.txt (725 Bytes) 用Fckditor如何传值


干脆把那4个文件的txt文件传上来吧

nArpyYDo.txt (7.01 KB) 用Fckditor如何传值



9pVX9llE.txt (1.69 KB) 用Fckditor如何传值



N9g9RNH1.txt (94 Bytes) 用Fckditor如何传值

2007-04-20 12:57
solon
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-4-18
收藏
得分:0 
我在等啊,没人看吗?
2007-04-20 13:48
快速回复:用Fckditor如何传值
数据加载中...
 
   



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

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