解决方案 »
- 紧急:求Java混淆加密JavaScript的代码
- 80分全部送上:正则达人请进
- 层如果显示在<select>上面好像会被<select>遮住,我的层只有一个表格,有什么解决办法没有?
- 自己封装的一个 servlet 和 applet 序列化通信的好例子
- 请问这样的新闻发布管理怎样能实现
- java/jsp/javscript问题
- 有关taglib的问题,对此感兴趣的朋友进!(进者赏分)
- linux下往往mysql数据库里插入大的数据原来可以,可是现在怎么都不行了
- UTF-8如何转换成GBK
- 我做了一个applet,需要.........
- 对java的strusts一点疑惑
- struts2.1.8 与 spring 集成的问题?
都兼容。赋值操作也简单!
注释过的代码“//document.getElementById("rvo.emailText").value+=path;”
应该是这样写吧???
改写成document.getElementById("rvo.emailText").innerText+=path;”
看可以么
就是这个ID呀!不对吗?还请多多指教!!!
同意。标签名和ID生成后的Html看看就知道怎么回事了
<td colspan="2" class="layertextwhite">
<div><input type="hidden" id="rvo.emailText" name="rvo.emailText" value="
<a href =http://localhost:80/u-dsm/onlineEdit_view.do?fileId=4028819829690cc90129691165ec001d>FCK工具属性大全.txt</a>
"><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>
还是不行呀
你要实现什么功能呢。
document.getElementById("rvo.emailText").innerText=value;
document.getElementById("rvo.emailText").innerText=value;
你要修改的是隐藏域的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 ) ;
}
你把id的。去了试试!rvo.emailTextrvoemailText
这个不是div
不用innerText用.value 试试!