其他
Ext.ux.ManagedIframe/Panel
Ever try to use an Iframe element as a '''writable''' body to Ext.Panel? Perhaps to render your own content in isolation from the rest of the host page, or just load another website in a tab panel.
Getting an IFRAME into the right place in the DOM isn't too difficult, but updating its contents with Ext.Elements' update method is a challenge. Ext.Element assumes the element it's managing has a innerHTML property. Well, IFRAMEs don't! So to make ''writable'' IFRAMEs easier to use within Ext framework, this extension overrides the default update method of Ext.Element(for the designated IFRAME) to provide exactly that sort of thing.
Now, you can use:
IFrameEl.update("<div>New content</div>");
meaning -- you can write any string content (replacing the entire document) directly to embedded document model of an IFrame. When using the extensions' new ''update'' and existing load methods, your IF
ext
iframe
管理
任务
组件
面板
专门
暂无评论