Results 1 to 3 of 3

Thread: How to dynamically change BodyCfg src in Panel

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Location
    Chennai,Tamil Nadu,India
    Posts
    72

    Default How to dynamically change BodyCfg src in Panel

    Hi all,

    How to change the src in bodyCfg dynamically in panel.
    Please Post your suggestions.
    Thanks in advance.
    Code:
                PanelEast =new Ext.Panel
                                ({
                                    bodyCfg: 
                                                   {
                                                        tag: 'iframe',
                                                        src:'http://localhost/controls/DHD.aspx',
                                                        frameborder: 0,
                                                        autoScroll:true,
                                                        autoWidth:true,
                                                        autoHeight:true
                                                   }
                                 });
    Thanks & Regards,
    Arul Prakash.M

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    1. Remove autoScroll:true, autoWidth:true and autoHeight:true (these are not attributes of an IFRAME tag!).
    2. You can use:
    Code:
    PanelEast.body.dom.src = 'other-page.aspx';

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Location
    Chennai,Tamil Nadu,India
    Posts
    72

    Default

    Thanks Condor for your valuable suggestions

Similar Threads

  1. Change the img src of an Box?
    By Dumas in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 24 Jan 2012, 3:41 AM
  2. changing a panel's bodyCfg
    By TheMonolith in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 27 Aug 2010, 1:45 PM
  3. Change color of a panel dynamically.
    By vpezzano in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 19 Mar 2009, 1:42 AM
  4. Change Panel style dynamically?
    By Black Dog in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 24 Dec 2008, 12:49 AM
  5. How do I change the src of my iframe with ext?
    By DuGi in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 21 Jun 2007, 12:03 PM

Posting Permissions

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