EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: arma on November 10, 2013, 04:16:55 PM



Title: Load content into dialog
Post by: arma on November 10, 2013, 04:16:55 PM
Hi,

What is the proper way to load dialog content from local html rather than loading from url? i don't find it in the doc.

rather than $('#dd').dialog('refresh', 'new_content.php');

Something like :

$('#dd').dialog('refresh/load', '<div>some html code</div>');
 
Thanks.


Title: Re: Load content into dialog
Post by: stworthy on November 11, 2013, 12:58:44 AM
Try this:
Code:
$('#dd').dialog({content:'<div>some html code</div>'});


Title: Re: Load content into dialog
Post by: yupengfei on November 15, 2013, 02:03:01 AM
Try this:

$("#dg").dialog('href', 'http://');