js源代码
386.function handin()
387.{
388. if (!validateMode()) return;
389. var strHTMLbegin;
390. var strHTMLend;
391. strHTMLbegin = "[HTML]";
392. strHTMLend = "[/HTML]";
393. opener.myform.txtcontent.value+=strHTMLbegin + getPureHtml(Composition.document.body.innerHTML) + strHTMLend;
394.self.close();
}html的代码
<textarea rows="30" name="txtcontent" cols="80" style="display:none"></textarea>
<iframe ID="Composition" src="htmledit/editor.html?id=txtcontent&style=standard" frameborder="0" scrolling="no" width="608" HEIGHT="350"></iframe>错误提示
网页错误详细信息用户代理: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )
时间戳: Sat, 15 May 2010 12:10:25 UTC
消息: 'opener.myform' 为空或不是对象
行: 393
字符: 4
代码: 0
URI: http://localhost:8880/zwebassist/news/admin/htmledit/edit.js
386.function handin()
387.{
388. if (!validateMode()) return;
389. var strHTMLbegin;
390. var strHTMLend;
391. strHTMLbegin = "[HTML]";
392. strHTMLend = "[/HTML]";
393. opener.myform.txtcontent.value+=strHTMLbegin + getPureHtml(Composition.document.body.innerHTML) + strHTMLend;
394.self.close();
}html的代码
<textarea rows="30" name="txtcontent" cols="80" style="display:none"></textarea>
<iframe ID="Composition" src="htmledit/editor.html?id=txtcontent&style=standard" frameborder="0" scrolling="no" width="608" HEIGHT="350"></iframe>错误提示
网页错误详细信息用户代理: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )
时间戳: Sat, 15 May 2010 12:10:25 UTC
消息: 'opener.myform' 为空或不是对象
行: 393
字符: 4
代码: 0
URI: http://localhost:8880/zwebassist/news/admin/htmledit/edit.js
就你贴出来的代码来看,完全看不出哪里有问题,opener应该是在某段js里面声明的对象……