EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on July 31, 2014, 03:14:08 AM



Title: EasyUI 1.4 panel problem
Post by: mzeddd 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


Title: Re: EasyUI 1.4 panel problem
Post by: jarry 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',{
  //...
});


Title: Re: EasyUI 1.4 panel problem
Post by: mzeddd on August 01, 2014, 12:04:02 AM
OK, will do this way.

Thanks