D
DL
Hi,
I have something like this:
var cb = new Ext.form.Combox( {
xtype: 'combo',
id: 'mybox'
....
});
which works just fine. However, in the later flow when the field
associated with the combox is no longer used I'd like to destroy the
box (it looks like cool effects).
The attempt of resetting the cb var to null did not help {cb=null} and
the attempt of removing the 'mybox' element didn't help neither
{var f = document.forms['myfrm']; var r =
document.getElementById('mybox'); f.removeChild(r);}
Simply put, it's like this:
Initially,
<input type="text" id="title"> {the combox here}
Later,
the <input type="text" id="title"> is removed or made invisible, so it
now looks like this
{the combox here}
and of course the above {the combox here} is unnecessary and it looks
bad.
Could you help? And please let me know if I haven't explained the
question clearly.
Thanks in advance.
P.S.
Testing browser is Firefox 3.5 and I'm using Firebug as well for
debugging.
I have something like this:
var cb = new Ext.form.Combox( {
xtype: 'combo',
id: 'mybox'
....
});
which works just fine. However, in the later flow when the field
associated with the combox is no longer used I'd like to destroy the
box (it looks like cool effects).
The attempt of resetting the cb var to null did not help {cb=null} and
the attempt of removing the 'mybox' element didn't help neither
{var f = document.forms['myfrm']; var r =
document.getElementById('mybox'); f.removeChild(r);}
Simply put, it's like this:
Initially,
<input type="text" id="title"> {the combox here}
Later,
the <input type="text" id="title"> is removed or made invisible, so it
now looks like this
{the combox here}
and of course the above {the combox here} is unnecessary and it looks
bad.
Could you help? And please let me know if I haven't explained the
question clearly.
Thanks in advance.
P.S.
Testing browser is Firefox 3.5 and I'm using Firebug as well for
debugging.