请教在JavaScript中如何取得FCKeditor的content中输入的值,为什么我在onsubmit事件中写的取content的vlaue的值为空??

解决方案 »

  1.   

    同样的问题!
    我的新闻添加页面中的:
    <input type="hidden" name="newsContent" value="请添加详细内容">
    <IFRAME ID="eWebEditor1" src="eWebEditor.jsp?id=newsContent&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>然后我在eWebEditor.jsp中填写newsContent内容怎么返回到新闻添加页面,试了好多方法,都不关用
      

  2.   


     <textarea id="blogContentNew" name="blogContentNew" rows="20" cols="50" style="width: 100%">
          </textarea><script type="text/javascript">
    window.onload = function()
    { var oFCKeditor = new FCKeditor( 'blogContentNew') ;
            oFCKeditor.BasePath = "/webblog/FCKeditor/" ;
            oFCKeditor.ReplaceTextarea() ;
    }</script>取文本内容的 javascript : alert( FCKeditorAPI.GetInstance('blogContentNew').GetXHTML( true ));
      

  3.   

    用JS
    top.location.href='url'
      

  4.   

    我在网页中是直接调用FCKeditor
    <FCK:editor id="content" basePath="../FCKeditor/"
    width="700"
    height="500"
    skinPath="skins/silver/"
    toolbarSet = "Default">
    </FCK:editor>
    请问pigo兄的方法是怎么调用FCKeditor的?
      

  5.   

    在创建FCKeditor时候有个Create属性,你写了没有,就是下面这个样子。这个Create创建的就是FCKeditor名字,类似于表单元素的name属性一样,创建好后,你在另外一个页面直接request.form("areticeContent")就可以取得值了。
    <%
     Set oFCKeditor = New FCKeditor
     ...
     oFCKeditor.Create "areticeContent"
     ...
    %>
      

  6.   

    哦,我用的是FCKeditor自定义标签,各位说的是用script脚本语言调用,看来还是用大家的方法好些,好操作多了。谢谢大家了。