EasyUI Forum
May 06, 2024, 08:18:42 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: EasyUI 1.4 panel problem  (Read 6469 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: July 31, 2014, 03:14:08 AM »

Hi,

The following code does not work in 1.4 but works in 1.3.6

Code:
		
$.post('test.php',
$("#myform").serialize(),
function(data){
//alert(data);
$("#results").panel('options').href='';
$("#results").panel('options').content=data;
$("#results").panel('refresh');
}
);

"Alert" shows that I get data but I don't see this result in my panel
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: July 31, 2014, 06:19:19 AM »

Normally the 'refresh' method is used to load remote data by using 'href' property. If the 'href' property is not defined, the 'refresh' method will abort. In order to update the panel content, you can
Code:
$("#results").panel({
  content: data
});
Or call 'refresh' method with some request parameter values.
Code:
$('#results').panel('refresh',{
  //...
});
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: August 01, 2014, 12:04:02 AM »

OK, will do this way.

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