zjumty
21 Sep 2007, 12:50 AM
hello, all
I create a form dynamically, and I want to delete it after submit.
but, there is no 'destory' or similar function in Ext.form.Form class. and also there is no 'getEl()' function to get the Element of Form.
how can I destory the form?
I find the form element by the following way:
Ext.select("#doc-input-form form").remove();
'doc-input-form' is the id of the html element that the form render to.
I wonder if there is memory leak by this way?
I create a form dynamically, and I want to delete it after submit.
but, there is no 'destory' or similar function in Ext.form.Form class. and also there is no 'getEl()' function to get the Element of Form.
how can I destory the form?
I find the form element by the following way:
Ext.select("#doc-input-form form").remove();
'doc-input-form' is the id of the html element that the form render to.
I wonder if there is memory leak by this way?