Page 13 of 102 FirstFirst ... 311121314152363 ... LastLast
Results 121 to 130 of 1017

Thread: [2.0 only] ux.ManagedIframe/Panel (1.2.7)

  1. #121
    Ext User
    Join Date
    May 2008
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Here is the tab:

    Code:
    var centerMainPanel = new Ext.TabPanel({
            id:'appTabs',
            region:'center',
            margins:'0 5 5 0',
            resizeTabs: true,
            minTabWidth: 135,
            tabWidth: 135,
            enableTabScroll: true,
            activeTab: 0,
            xtype:'tabpanel',
            defaultType   :'iframepanel',
            defaults:{
                    loadMask:{msg:'Loading Site...'},
                    autoShow:true,
                    listeners:{   //common listeners for all iframe tab items
                        scope     : Demo,
                        domready  : Demo.transform
                      }
                    },
          items:[{
              id            :'mainTab',
              title         :'Main Tab',
              defaultSrc :'watermark.html', 
              closable    :false,
              frameConfig:{id:'frame_main'}
         }]
    
        });
    and the method
    Code:
    function(){ 
                                            Ext.MessageBox.prompt('Rename Tab', 'Enter the name of the tab', 
                                                function(btn,txt){centerMainPanel.getActiveTab().setTitle(txt);
                                                });
                                            }

  2. #122
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    I don't believe a title change recalcs the autoSize geometry

    try:

    Code:
    function(){ 
        Ext.MessageBox.prompt('Rename Tab', 'Enter the name of the tab', 
               function(btn,txt){
                   centerMainPanel.getActiveTab().setTitle(txt);
                   centerMainPanel.delegateUpdates();
                  });
      }
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #123
    Ext User
    Join Date
    May 2008
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Nope that did not work, infact doing that with a normal TabPanel made it so that regardless of what you renamed it, it would go to the default size.

    I think it may be an issue with how it is determining the size of the tab in the first place (if it even does), because if I start with a small title on a normal Tab it has a small size, but regardless of what size I use for the iFramePanel's title the width of the tab is always the value of tabWidth.

  4. #124
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    Yes, tabPanel drives the all tab sizing, not the tab items (MIF in this case). MIFP is just a subclass of Ext.Panel.

    What Ext version is this?

    Panel.setTitle has had problems for months.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  5. #125
    Ext User
    Join Date
    May 2008
    Posts
    37
    Vote Rating
    0
      0  

    Default

    Version 2.1

  6. #126
    Ext User
    Join Date
    Nov 2007
    Posts
    13
    Vote Rating
    0
      0  

    Default Error with MIFrame desktop sample

    I get the following error error when I try out the desktop example

    types[config.xtype || defaultType] is not a constructor
    Line 12086 in ext-all-debug.js

    <code>
    return new types[config.xtype || defaultType](config);
    </code>

    Any hints to resolving this?

  7. #127
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    Quote Originally Posted by mikester View Post
    I get the following error error when I try out the desktop example

    types[config.xtype || defaultType] is not a constructor
    Line 12086 in ext-all-debug.js

    Code:
    return new types[config.xtype || defaultType](config);

    Any hints to resolving this?
    @mikester --
    Sounds like you're not loading the miframe.js script properly or at all. Make sure you also extract all the zips into the same directory.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  8. #128
    Ext User
    Join Date
    Nov 2007
    Posts
    13
    Vote Rating
    0
      0  

    Default

    Awesome, thanks, that did it.

    desktop.html
    Code:
    <script type="text/javascript" src="../miframe/miframe.js"></script>
    I had to change it to ../miframe/miframe.js

    Good plugin, just what I was looking for!

  9. #129
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    646
    Vote Rating
    12
      0  

    Default Lazy render iframepanel and pass params

    Is it possible to lazy render a ManagedIframePanel and be able to set params for the url to get called with? I was including the config options "params" but nothing was passed. It would be ideal if these could be passed as a POST.

    Am I just missing the obvious?

  10. #130
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966
    Vote Rating
    15
      0  

    Default

    @zombeerose -- You have a couple of options available for that. The defaultSrc config options and setSrc method both accept a function for determining a desired URL.

    Lazy:
    Code:
    getURI = function(){ return someURL + someParams; };
    
       items: [{
          xtype:'iframepanel',
          defaultSrc: getURI,
       }]
    on demand:
    Code:
    MIFP.setSrc(getURI);  //force it again..
    For posting, you'll have to use autoLoad:
    Code:
     items: [{
          xtype:'iframepanel',
          autoLoad: {url:'something.php', params:{ }, method:'POST'}
       }]
    This would write the entire page response to the iframe after the POST.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


Page 13 of 102 FirstFirst ... 311121314152363 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •