-
15 Apr 2009 11:36 PM #1
not showing the html page in tab panel
not showing the html page in tab panel
hi m trying to load the html page in the tab panel but it is not showing that html page. it is loading the any site like yahoo,google etc in that panel but not loading any normal html page made by me like display.html.
dblclick: function(node)
{
Ext.getCmp('aa').add(
{
title: node.text,
iconCls: 'tabs',
autoLoad:'com.html',
//autoLoad:{url:'http://www.yahoo.com'},
closable: true
}).show();
}
plz solve this problem.........
-
15 Apr 2009 11:48 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Is this a file on your local file system? Ext doesn't support local XHR.
Either deploy your application on a HTTP server or use the ext-basex user extension.
-
16 Apr 2009 12:57 AM #3
-
16 Apr 2009 1:02 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Code:<script type="text/javascript" src="adapter/ext/ext-base.js"></script> <script type="text/javascript" src="ext-all.js"></script> <script type="text/javascript" src="ux/ext-basex.js"></script> <script type="text/javascript"> Ext.lib.Ajax.forceActiveX = true; </script>
-
16 Apr 2009 1:32 AM #5
when i set the page which simply made up of html tags at that time the page is loaded but at the time when i include the page which made up of extjs then page is loaded without any element.
-
16 Apr 2009 3:01 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Use:
ps. This is very inefficient. I would recommend using the RemoteComponent plugin instead.Code:autoLoad: {url: 'mypage.html', scripts: true}
-
23 Apr 2009 9:30 PM #7
plz tell me how to use remote components plugins

-
24 Apr 2009 1:24 AM #8Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
RemoteComponent (or Lite) is a plugin that simplifies loading component config objects from a remote .js into a container.
This is useful if the content of the container you want to load consists only of Ext components (which is preferred anyway, because then you can use layouts).
-
27 Apr 2009 8:20 PM #9
plz tell me how can i use remote.js in this program.
-
27 Apr 2009 8:33 PM #10
i have used the remote component in this example. plz tell me is this the right way.
isteners:
{
dblclick: function(node)
{
Ext.getCmp('aa').add(
{
title: node.text,
iconCls: 'tabs',
plugins: new Ext.ux.Plugin.LiteRemoteComponent({ autoLoad : 'ab1.html' }),
//autoLoad:'ab1.html',
scripts: true,
//autoLoad:{url:'http://www.yahoo.com'},
closable: true
}).show();
}
}


Reply With Quote