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="" >

解决方案 »

  1.   

    <!--#include file ="conn.asp"--><head>
    <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
      

  2.   

    能不能直接写成function onload(),再转弯一次再麻烦了,我把<script language="JavaScript">放前一点就行不行,这样就能在加载过程中快点把内容传进doc_html.value里面