PDA

View Full Version : Quick Help with a form please......



dmedina2000
26 Jan 2008, 11:22 AM
This is an easy one for you guys.
I want to create a small window that has a panel inside with 2 tabs.
On one tab I want to display information. On the other tab I want the user to be able to enter text. Below is all I have. Whenever I try to add tabs on the fly i get an error.

Please help....
p.s.
Has anyone ever added a tail to a Ext.window to make it look like a Balloon?

I have no predefined divs in my HTML.
so i need things created on the fly......:((



if(!dlg){
this.tab = new Ext.TabPanel();
dlg = new Ext.Window({
title: 'Info Window',
layout:'fit',
width:150,
height:150,
closeAction:'hide',
plain: true,
items: this.tab,

buttons: [{
text:'Submit',
disabled:true
}]
});
}

dlg.show(this);
},

tryanDLS
26 Jan 2008, 1:11 PM
Have you looked at the windows\layout example?

dmedina2000
26 Jan 2008, 3:01 PM
In that example Ext.example.bogusMarkup is predefined or is that created on the fly or what?






items:[{
title: 'Bogus Tab',
html: Ext.example.bogusMarkup
},{
title: 'Another Tab',
html: Ext.example.bogusMarkup
},{
title: 'Closable Tab',
html: Ext.example.bogusMarkup,
closable:true
}]
});

evant
26 Jan 2008, 3:52 PM
What is the error? We can't guess what it is.

tryanDLS
26 Jan 2008, 4:23 PM
It's defined in the included examples.js