kkven
16 Aug 2007, 11:01 PM
Is there any way to load a dialogbox from an anchor w/ animation? Here is the code i have.
It works perfectly fine w/ a button however it does not work w/ the anchor(<a></a>) as it is not an Ext button object.
any help would be greatly appreciated.
Thanks a lot in advance,
Kkven
var DlgShow = function(btn, e) {
if(!this.dlg) {
// create the BasicDialog
this.dlg = new Ext.BasicDialog('dialog', {
width: 220
, height: 220
, modal: true
, shadow: true
, proxyDrag: true
});
}
if(this.dlg.isVisible()) {
this.dlg.hide(btn.el);
}
else {
this.dlg.show(btn.el);
}
};
showBtn = Ext.fly('loginIn');
showBtn.on('click', DlgShow, this);
It works perfectly fine w/ a button however it does not work w/ the anchor(<a></a>) as it is not an Ext button object.
any help would be greatly appreciated.
Thanks a lot in advance,
Kkven
var DlgShow = function(btn, e) {
if(!this.dlg) {
// create the BasicDialog
this.dlg = new Ext.BasicDialog('dialog', {
width: 220
, height: 220
, modal: true
, shadow: true
, proxyDrag: true
});
}
if(this.dlg.isVisible()) {
this.dlg.hide(btn.el);
}
else {
this.dlg.show(btn.el);
}
};
showBtn = Ext.fly('loginIn');
showBtn.on('click', DlgShow, this);