1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    naveen is on a distinguished road

      0  

    Default Reloading an iframe

    Reloading an iframe


    Hi
    Its pretty nice to see such a forum guiding newcommers with plenty of knowlede. I appriciate you all.

    I aslo tried out some basic examples. But when I tried to reload an iframe which is defined in a conent panel, its seems not working fine. I loaded a PHP page in an ifrme which is defined in a content panel region. On submit i would like reload the i frame and show another php file in the same cintent panel.

    How can i proceed ?

    Cntent pane
    l
    Code:
    ayout.add('south', new YAHOO.ext.ContentPanel('south',{fitToFrame:true, autoCreate: {tag:'iframe',id:'southframe', name:'southframe',frameborder:'no'}}));
    getEl('southframe').dom.src = '4test1.php';

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You don't need to do anything. iframes are like browsers.

    Just have the PHP script you submitted to include the php file you wish to see next.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    naveen is on a distinguished road

      0  

    Default


    hi

    But it sems to load in a new window insted of my content panel ?

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    What's the target of the form?

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    naveen is on a distinguished road

      0  

    Default


    hi

    Target i have given as the id of the contentpanel .....if i give parent its doest hav any sense !!
    what should i give ?

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    That's the problem.

    You don't need a target. The iframe is a little browser window all of its own. A regular submit with no target will take place inside the iframe, and the results will appear inside it.

  7. #7
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    naveen is on a distinguished road

      0  

    Default


    hi
    Thanks
    In the same panel its reloding properly. But from one panel to another panel i am not able tp load it?

  8. #8
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Not unless you do some clever jiggery-pokery.

    Are you up to it?

  9. #9
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    naveen is on a distinguished road

      0  

    Default


    Hi Animal

    Thank You, I accepted what you are saying.
    If u don't mind can u tell how can i proceed .

  10. #10
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    naveen is on a distinguished road

      0  

    Default


    Hi friends...

    can any body reply my doubt ??

Similar Threads

  1. Reloading Iframe Via UpdateManager
    By ani in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 5 Mar 2007, 9:15 AM
  2. Reloading different data into a grid
    By ealameda in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 Mar 2007, 8:58 AM
  3. Grid Filtering and Reloading
    By Greeens in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 15 Feb 2007, 10:33 PM
  4. Reloading a ContentPanel (or TabPanel)
    By jamaljohnson in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 2:16 PM
  5. Reloading existing ContentPanel (TabPanel actually?)
    By jamaljohnson in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 14 Nov 2006, 2:15 PM

Thread Participants: 1