EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 04:37:03 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Can't build window html fragment loaded from server
Pages: [
1
]
« previous
next »
Print
Author
Topic: Can't build window html fragment loaded from server (Read 7700 times)
debarcar
Newbie
Posts: 9
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
Logged
jarry
Administrator
Hero Member
Posts: 2298
Re: Can't build window html fragment loaded from server
«
Reply #1 on:
July 01, 2015, 07:06:25 AM »
Please use the panel's refresh method to load content page.
http://www.jeasyui.com/demo/main/index.php?plugin=Panel&theme=default&dir=ltr&pitem=Load%20Content
Logged
debarcar
Newbie
Posts: 9
Re: Can't build window html fragment loaded from server
«
Reply #2 on:
July 01, 2015, 07:10:18 PM »
It works! Thank you jarry!!
Regards!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...