EasyUI Forum
September 13, 2025, 04:37:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Can't build window html fragment loaded from server  (Read 7700 times)
debarcar
Newbie
*
Posts: 9


View Profile
« 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


View Profile Email
« 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


View Profile
« Reply #2 on: July 01, 2015, 07:10:18 PM »

It works! Thank you jarry!!

Regards!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!