Panel loader not creating iframe element for the view

  1. #1

    Panel loader not creating iframe element for the view

    I am using mvc 4 and ext.net 2.5. I am dynamically adding a tab and loading via a view from the controller. However, the view must be displayed in an iframe. When I do not add my own render function - the view does not render to the correct panel. When I add the renderer - it appears to create the container correctly but does not display the content because it is not in an iframe. Here is the addTab method:

          var tp = Ext.getCmp('MainTabs');
            var tab = tp.add(new Ext.Panel({
                title: config.title,
                hideMode: 'display',
                loader: {
                        url: config.url,
                        renderer: function (loader, response, active) {
                            var text = response.responseText;
                            loader.getTarget().update(response.responseText);
                            return true;
                        },
                        loadMask: true,
                        autoLoad: true,
                        scripts: true,
                        mode: 'iframe'
                 },
                listeners: {
                    activate: activateFunc,
                    beforeclose: closeFunc
                },
                layout: 'fit',
                closable: true
            }));
    config.url - is a route to the controller which is working. Ex. /Home/Index
  2. #2
    Hi @jbarbeau,

    Please clarify is it the same problem here?
    http://forums.ext.net/showthread.php...l=1#post185781

Similar Threads

  1. Loader in Element Domobject ?
    By vikram in forum 2.x Help
    Replies: 2
    Last Post: Jul 26, 2013, 7:41 AM
  2. [CLOSED] HtmlEditor iframe Element CSS
    By inteligencija in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 05, 2012, 12:14 PM
  3. Creating new Element
    By _xpto in forum 1.x Help
    Replies: 2
    Last Post: Oct 26, 2012, 5:32 PM
  4. Gridpanel View element
    By Hari in forum 1.x Help
    Replies: 2
    Last Post: Jan 15, 2010, 3:47 PM
  5. Replies: 8
    Last Post: Jun 11, 2008, 9:58 AM

Tags for this Thread

Posting Permissions