1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
    yajetechnologies is on a distinguished road

      0  

    Default TabPanel calling Ajax page (html), with GridPanel inside page

    TabPanel calling Ajax page (html), with GridPanel inside page


    Im trying to call a separate PAGE using TabPanel's autoLoad. Inside that page
    I have added the base and library and other necessary stuff to run on its own.
    In that page also, there is a GridPanel that would display some rows of data.
    The error is that when tabPanel opens it, no GridPanel is there?? Hola...

    Is there a way to like set the item of tabPanel to be independent Iframe like?...

    I know about remoteLoad application stuff, but i wanted to have simple on-the-fly
    tab with a grid on it....

    FYI, when i attached the grid in the parent's js and add the var containing GridPanel,
    and added it to item for the tabPanel, it worked. But of course, this does not solve the problem.

    Help pls... \(*.*)/
    Lib: Ext.3.0

  2. #2
    Sencha User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
    yajetechnologies is on a distinguished road

      0  

    Thumbs up Solved by me

    Solved by me


    Reading from DebNull's post http://www.sencha.com/forum/member.php?6744-devnull
    where he said that the doc has already been loaded. So I removed the base.js and library.js
    on the external page's code.... Then i moved the external page's js below the markup....
    Then I added scripts:true to the autoLoad prop.

    Now I got this...
    Code:
    autoLoad: {url: 'ajax2.htm', params: 'foo=bar&wtf=1', scripts: true }
    The GridPanel on the external's page now works, INSIDE the tabPanel...

    A pat in the back for myself!!!

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    hamizah is on a distinguished road

      0  

    Default


    can you give an example code.

Similar Threads

  1. Layout inside and existing html page
    By paulvonline in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 8 Mar 2010, 1:49 AM
  2. showing the html page in a tabpanel
    By anoop abbot in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 16 Apr 2009, 1:20 AM
  3. Html page in TabPanel
    By crmd009 in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 10 Mar 2009, 12:44 AM
  4. Executing a Javascript inside TabPanel autoloaded page
    By furutani in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 29 Sep 2008, 9:49 AM
  5. Problem nesting a TabPanel inside a tab page
    By murrah in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 4 Nov 2007, 7:35 PM

Thread Participants: 1

Tags for this Thread