在页面中通过OBJECT标记引用一个在线编辑HTML页面,要如何获取编辑的内容
原来我一直用ASP的<!--#include file="编辑HTML页面"-->
但这样的方式经常会要做很多变动
后来看到有朋友用OBJECT标记来引用这个页,感觉会方便,利用他们给出的方法,但我总是得不到编辑器的内容。
下面是我用的代码(编辑器是自己写的,直接使用IFRAME做的)
==========================================================
<script language="javascript">
function CheckForm()
{
alert(form1.htmledit.value);
// form1.content.value=form1.doc_html.value;
//http://oofo.com/non-cgi/editor/editor.html <--这是别人的编辑器地址,一样不能用。
return false;
}
</script>
<form method="post" name="form1" id="form1">
<object data="http://www.junsea.com/tianxiang/htmledit/index.htm" type="text/x-scriptlet" name="htmledit" id="htmledit" width=530 height=320 style="LEFT: 0px; TOP: 0px" VIEWASTEXT>
</object>
<textarea name="content"></textarea>
<INPUT type="button" name="Submit" value="按钮" onclick="jscript:return CheckForm()">
</form>
=======================================================================
请问我应该如何来获取OBJECT引用的HTML编辑器里的内容。如果有相关的资料,可否给我。