本帖最后由 fengfenglucky 于 2010-06-25 08:54:45 编辑

解决方案 »

  1.   

    直接用jquery了。
    都兼容。赋值操作也简单!
      

  2.   

    为什么不用document.getElementById();这个肯定兼容,或者如楼上所说用jquery。
      

  3.   

    document.getElementById();这个也用了呀,还是不兼容的
    注释过的代码“//document.getElementById("rvo.emailText").value+=path;”
    应该是这样写吧???
      

  4.   

    你把標籤生成後的HTML代碼貼上來看看
      

  5.   

    楼主 你这样得到的是ID  么???何为 id????
      

  6.   

    你把document.getElementById("rvo.emailText").value+=path;”
    改写成document.getElementById("rvo.emailText").innerText+=path;”
    看可以么
      

  7.   

     文本编辑器中这样写的<FCK:editor id="rvo.emailText" width="100%" height="350" toolbarSet = "Basic"
    就是这个ID呀!不对吗?还请多多指教!!!
      

  8.   


    同意。标签名和ID生成后的Html看看就知道怎么回事了
      

  9.   

    运行后,查看源文件html代码如下:
     <td colspan="2" class="layertextwhite"> 
           <div><input type="hidden" id="rvo.emailText" name="rvo.emailText" value="
    &lt;a href =http://localhost:80/u-dsm/onlineEdit_view.do?fileId=4028819829690cc90129691165ec001d&gt;FCK工具属性大全.txt&lt;/a&gt;
    "><input type="hidden" id="rvo.emailText___Config" value="FontNames=Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana&EnableSourceXHTML=true&EditorAreaCSS=true"><iframe id="rvo.emailText___Frame" src="/u-dsm/FCKeditor/editor/fckeditor.html?InstanceName=rvo.emailText&Toolbar=Basic" width="100%" height="350" frameborder="no" scrolling="no"></iframe></div>
     
          </td>
      

  10.   

    改写成document.getElementById("rvo.emailText").innerText+=path;”
    还是不行呀
      

  11.   

    怎么感觉你FCK用的有问题。
    你要实现什么功能呢。
      

  12.   

    var value= document.getElementById("rvo.emailText").value+path;
    document.getElementById("rvo.emailText").innerText=value;
      

  13.   

    var value= document.getElementById("rvo.emailText").value+path;
    document.getElementById("rvo.emailText").innerText=value;
      

  14.   

    改写成document.getElementById("rvo.emailText").innerText+=path;”+=;你别这么用!
      

  15.   

    document.getElementById("rvo.emailText").innerText=document.getElementById("rvo.emailText").innerText+path
      

  16.   

    我用document.getElementById("rvo.emailText").innerText怎么就取不到值呀?
      

  17.   

    rvo.emailText 是FCK的实例是表单的属性?
    你要修改的是隐藏域的value还是编辑器里的内容?
    --------------------
    function setDirectory(data){
    var id="",name="",path="",fileId="";
    var temp;
    name=data[i].getName()+",";
    fileId = data[i].getId();
    //alert("name+fileId=="+name+fileId);
    path ="<br/><a href = "+"<%=basePath%>" + "onlineEdit_view.do?fileId="+fileId+">"+name+"</a>";
    //将预览地址作为邮件内容放到在线编辑框中
    newValue = document.forms["rec"]["rvo.emailText"].value + path;
    //document.forms["rec"].elements["rvo.emailText"].value += path;
    //document.getElementById("rvo.emailText").value+=path;var oEditor = FCKeditorAPI.GetInstance("rvo.emailText") ;
    oEditor.SetHTML(newValue ) ;
     
    }
      

  18.   

    应该能取到啊!
    你把id的。去了试试!rvo.emailTextrvoemailText
      

  19.   

    按道理来说用document.getElementById()是可以赋值的啊,用jquery看行不
      

  20.   

    <input type="hidden" id="rvo.emailText" name="rvo.emailText
    这个不是div
    不用innerText用.value 试试!
      

  21.   

    请问,如果用jQuery该怎么写呀?
      

  22.   

    这个值是邮件的内容,我在编辑器显示以后,还需要把显示的值传到Action层去发邮件
      

  23.   

     我遇到过 就是ID 带个.的话 连 JQ 都不好使了