+ -
当前位置:首页 → 问答吧 → 关于火狐节点不能插入的问题!

关于火狐节点不能插入的问题!

时间:2011-09-23

来源:互联网


错误: uncaught exception: [Exception... "Node cannot be inserted at the specified point in the hierarchy" code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: "http://localhost:16861/WebSite/manager/ResourceLibrary/category.aspx Line: 70"]
有没有什么办法解决!

作者: begintransaction   发布时间: 2011-09-23

代码呢

作者: knightzhuwei   发布时间: 2011-09-23

JScript code
 function addCategory() {
            var lab = $get("#pctv");
            document.createElementPhotoCategory(lab);
        }

        document.createElementPhotoCategory = function (lab) {
            //li
            var newli = document.createElement("li");

            //输入框
            var input_text = document.createElement("input");
            input_text.type = "text";
            input_text.onfocus = function () {
                newli.className = "sli";
            }
            input_text.onblur = function () {
                newli.className = null;
            }

            newli.appendChild(input_text);
            lab.lastChild.appendChild(newli);
            input_text.focus();
        }

作者: begintransaction   发布时间: 2011-09-23

引用 1 楼 knightzhuwei 的回复:
代码呢

贴码贴出来了

作者: begintransaction   发布时间: 2011-09-23

自个解决了!

作者: begintransaction   发布时间: 2011-09-23

相关阅读 更多

热门下载

更多