Show Posts
|
Pages: [1]
|
9
|
General Category / EasyUI for jQuery / Can't build window html fragment loaded from server
|
on: July 01, 2015, 05:13:57 AM
|
Hi All,
$.getScript("modules/commonEdit.js", function() { });
commonEdit.js: $('body').append("<div id=\"win_commongrid\"></div>"); $("#win_commongrid").window({...
It is ok when the window build from js.
But when I use this: $('body').append("<div id=\"win_xxxx\"></div>"); $("#win_xxxx").load("modules/commonCreate.html");
commonCreate.html: <div id="w" class="easyui-window" title="Basic Window" data-options="iconCls:'icon-save'" style="width: 500px; height: 200px; padding: 10px;">The window content.</div>
In firebug, the html fragment is loaded and the div is added. But the window is not built.
Any suggestion and thanks!
Dixon
|
|
|
|