Ext JS - Learning Center

ManageIframe:Examples:examples basic

From Learn About the Ext JavaScript Library

Jump to: navigation, search

Basic Usage Examples (Ext 1.x, 2.x)

IFRAME as the Content Element of Ext.ContentPanel

This one is really easy:

//Ext 1.x example: ManagedIFrame as ContentPanel element
Ext.onReady(function(){
     var panel = new Ext.ContentPanel(new Ext.ux.ManagedIFrame( {autoCreate : {src:'mapgen.php'}})
        ,{title: 'Location', fitToFrame:true});
});

Then, later we can clear/update it:

 panel.el.update('<b>This Map has Expired</b>');
  • This page was last modified 06:44, 16 February 2008.
  • This page has been accessed 4,613 times.