PDA

View Full Version : the question about the tabpanel and the load method?



chokee
11 Aug 2009, 7:30 PM
in my code:
why the load method is not show??:-/
please!
-----------------------
// botPanel
var botPanel= new Ext.TabPanel(
--------------{
-----------------id: 'botPanel',
-----------------activeTab: 0,
-----------------closable: true,
-----------------width: Ext.getBody().getWidth(),
-----------------tabPosition: 'bottom',
-----------------items: [],
-----------------listeners:
-----------------{
-----------------------'close': function(bp){
-----------------------------alert('bp is close');
-----------------------}
-----------------}
-----------});
botPanel.add(
-----------{
-----------------id: 'welcome',
-----------------header: true,
-----------------title: 'first',

----------------------------the url is not load in my load method, why?----------------

-----------------load:
-----------------{
-----------------------url: 'terminalMgr/terminalM2/terminalCheck.jsp',
-----------------------text: 'load...',
-----------------------scripts: true
-----------------}
});
// onReady
Ext.onReady(function(){
-----------------Ext.QuickTips.init();
-----------------Ext.form.Field.prototype.msgTarget= 'side';
-----------------// document.body.contentEditable= true;
-----------------// viewport
-----------------var viewport= new Ext.Viewport(
----------------------------{
----------------------------------id: 'viewport',
----------------------------------layout: 'table',
----------------------------------layoutConfig:
----------------------------------{
--------------------------------------- columns: 1
----------------------------------},
----------------------------------items: [ botPanel]
-----------------------------});

-----------------viewport.doLayout();
});

i don't know Whether the jsp contains the reasons for javascript?
---------
email:[email protected]
thank everyone.

tryanDLS
11 Aug 2009, 7:35 PM
http://extjs.com/learn/Ext_Forum_Help#How_to_post_code_properly

What does firebug show? Is the request sent and returned?

chokee
11 Aug 2009, 7:41 PM
http://extjs.com/learn/Ext_Forum_Help#How_to_post_code_properly

What does firebug show? Is the request sent and returned?


the firebug show none!
and it show none in the tabpanel!