jquery - Javascript HierarchyRequestError -


ff js interpreter not code:

var dialog = "<div id=\"dialog\" title=\"dimensions\"><p>new width = " + r[0] + "mm</p><p>new height = " + r[1] + "mm</p></div>"; $("body").append(dialog).dialog({ resizeable:false, modal:true, buttons:{"ok":function(){ $(this).dialog("close"); }} }); 

why problematic?

hierarchyrequesterror: node cannot inserted @ specified point in hierarchy

could because $("body").append(dialog) returns body , not appended element , $("body").append(dialog).dialog({...}); trying call .dialog on body?

try separating calls to:

$("body").append(dialog); $('#dialog').dialog({ resizeable:false, modal:true, buttons:{"ok":function(){$(this).dialog("close"); }}}); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -