EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: hjzhbb7758 on June 20, 2016, 09:29:31 PM



Title: panel content iframe
Post by: hjzhbb7758 on June 20, 2016, 09:29:31 PM
like  title, how can i  use panel plugin content property load a iframe .


var iframe_ = '<iframe src="' + node.attributes.url + '" frameborder="0" style="border:0;width:100%;height:99.4%;"></iframe>';
panel.panel('options').content = iframe_;


why this code can't work。


Title: Re: panel content iframe
Post by: hjzhbb7758 on June 20, 2016, 09:58:13 PM
http://jsfiddle.net/54v8nacp/54/


Title: Re: panel content iframe
Post by: jarry on June 20, 2016, 11:43:06 PM
This example works fine.
http://jsfiddle.net/54v8nacp/56/


Title: Re: panel content iframe
Post by: hjzhbb7758 on June 21, 2016, 02:46:13 AM
thanks a lot ,it's work.