EasyUI Forum
May 03, 2024, 08:59:33 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: window with href not draggable  (Read 3883 times)
fguibert
Newbie
*
Posts: 23


View Profile
« on: October 07, 2018, 01:17:50 AM »

Hi

I'm facing an issue with easyui-window object.
When I try to open an empty window, the window open normally and is draggable :


Code:
<div id="mypopup" closable="true" draggable="true" class="easyui-window" title="Hello" data-options="modal:false,closed:true,iconCls:'icon-man'" style="width:800px;height:520px;padding:10px;">
</div>           
...
$('#mypopup').window('open');


but if I add a href attribute on the window to load content with XHR before opening, the window opens with the right content well BUT is no more draggable (closing, mini/maximazing is ok):

Code:
$('#mypopup).panel({href:'http://localhost/test.php'}); 
$('#mypopup').window('open');

I also try with window's refresh method, but same result :

Code:
$('#mypopup').window('refresh', 'http://localhost/test.php');

what's the matter ?
thanks all
               
« Last Edit: October 07, 2018, 03:51:11 AM by fguibert » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 07, 2018, 05:44:50 AM »

Please try this code:
Code:
$('#mypopup').window({href:'http://localhost/test.php'}); 
$('#mypopup').window('open');
Logged
fguibert
Newbie
*
Posts: 23


View Profile
« Reply #2 on: October 07, 2018, 07:42:53 AM »

it works great, thanks again stworthy !
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!