EasyUI Forum
May 19, 2024, 10:28:56 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: DateTimeBox in dialog window  (Read 4675 times)
RML
Newbie
*
Posts: 2


View Profile
« on: October 09, 2014, 07:50:18 AM »

I am having problems having a DateTimebox work in a dialog window.

the DateTimeBox is in the testLayoutDialog.html page.

function openDialog(){
      
   var path = 'testLayoutDialog.html';
   //Open Window
   $("#managementwindow").load(path).dialog({modal:true,width:800,height:700,title:"My Test Date Box "});    
      
      
   }

Will the DateTimeBox work in a dialog window that is in a page that is loaded into the dialog window?


Thanks in advance for the help!


Ron
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: October 09, 2014, 03:12:14 PM »

Please set 'href' property or call 'refresh' method to load external page content.
Logged
RML
Newbie
*
Posts: 2


View Profile
« Reply #2 on: October 10, 2014, 08:04:13 AM »

Thanks Jarry!  The href worked and I removed the .load

Here is the code that worked.

function openDialog(){
     
   var path = 'testLayoutDialog.html';
   //Open Window
   $("#managementwindow").dialog({href:path,modal:true,width:800,height:700,title:"My Test Date Box "});   
     
     
   }

The refresh method also worked:

   $('#managementwindow').dialog({
    title: 'My Test Date Box ',
    width: 800,
    height: 700,
    cache: false,
    href: path,
    modal: true
});
$('#managementwindow').dialog('refresh', path);

Thanks again!

Ron
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!