function CheckForm()
{
document.form1.content.value=document.form1.doc_html.value;
return true
}function setData()
{
document.form1.doc_html.value = document.form1.cont.value
return true
}
在head中加入函数,<body onload=setData()><%if not rs.eof then
c=rs("text")
%>
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=editor/editor.htm width=544
height=320 type="text/x-scriptlet" VIEWASTEXT>
<textarea style="display:none" name="cont">
<%=c%>
</textarea><input type="hidden" name="content" value="" >
{
document.form1.content.value=document.form1.doc_html.value;
return true
}function setData()
{
document.form1.doc_html.value = document.form1.cont.value
return true
}
在head中加入函数,<body onload=setData()><%if not rs.eof then
c=rs("text")
%>
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=editor/editor.htm width=544
height=320 type="text/x-scriptlet" VIEWASTEXT>
<textarea style="display:none" name="cont">
<%=c%>
</textarea><input type="hidden" name="content" value="" >
<body onload=setData()>
</head>
<%
sql="select * from company"
rs.open sql,conn,1,1
response.write rs("list") '这里显示的结果为:ffffffffff
%>
<script language="JavaScript">
function setData()
{
document.doc_html.value = document.form1.cont.value
return true
}
</script>
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=edit/editor.htm width=544
height=320 type="text/x-scriptlet" VIEWASTEXT>
<textarea style="display:none" name="cont">
<%=rs("list")%>
</textarea><input type="hidden" name="content" value="" >错误:
行:12
字符:5
错误:'document.form1.cont'为空或不是对象
代码:0