使用Jquery 意外地调用了方法或属性访问错误

programmebird 2010-03-19 10:26:30

<form enctype="multipart/form-data" name="form1" id="form1" method="post">
<input type="hidden" name="edithtml" id="edithtml" value="1" ></input>


<textarea name='imghtml' style='width:100%;height:250px;'><?php echo $imgHtml; ?></textarea>

<input type="button" name="imgok" id="imgok" onclick='InsertHtml()' value=" 插入到编辑器 " style="height:24px" class="binput" />


</form>


var oEditor = window.parent.InnerDialogLoaded() ;
var oDOM = oEditor.FCK.EditorDocument ;
var FCK = oEditor.FCK;
var picnum = 1;
var iimghtml = FCK.GetXHTML(true);
function InsertHtml()
{
var inhtml=document.form1.imghtml.value;
$(iimghtml).appendTo("#edithtml");
//alert($(iimghtml));
//alert(inhtml);
}
...全文
1073 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
司马喂羊 2011-04-12
  • 打赏
  • 举报
回复
var inhtml=document.form1.imghtml;
$(iimghtml).appendTo($("#edithtml"));
hellochenfang 2011-04-12
  • 打赏
  • 举报
回复
("#edithtml") 前面少加了$
shan1119 2010-03-19
  • 打赏
  • 举报
回复
zhe ge:
var iimghtml=document.form1.imghtml;
$(iimghtml).appendTo("#edithtml");
shan1119 2010-03-19
  • 打赏
  • 举报
回复
var inhtml=document.form1.imghtml;
$(iimghtml).appendTo("#edithtml");
programmebird 2010-03-19
  • 打赏
  • 举报
回复
var inhtml=document.form1.imghtml.value;
$(iimghtml).appendTo("#edithtml");
其中一句注释掉就没问题了 我把#edithtml标签换成h4 错误就不提示了。。。奇怪啊
阿非 2010-03-19
  • 打赏
  • 举报
回复
那句报错
programmebird 2010-03-19
  • 打赏
  • 举报
回复
ff正常 ie8报错

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧