Oct 26, 2011, 3:21 PM
[CLOSED] Can't execute code from a freed script error only in IE
This is the context:
Breaks on this when trying to setValue for a datefield:
This is where error occurs:
Any idea?
Thanks
Ext.onReady(function () { _frmMain = <%=frmMain.ClientID%>;
_certAndScreenPanel = <%=pnlCertAndScreen.ClientId %>;
itemId = <%=inc.initInt(Request("itemId"))%>;
orgType = <%= orgType %>
fillForm();bindCombo();});
function fillForm(record) {
if (!itemId) return;
if (!record) {
record = top._vmsTabPanel.GetWndTab().stoCertAndScreen.getById(itemId);
}
setFormDisplay(record);
_frmMain.form.items.each(function (i) { if (i.dataIndex) i.setValue(record.data[i.dataIndex]); } )
//_frmMain.form.loadRecord(record);
if (!cmbCertAndScreenList.adjW) {
newWidth = cmbCertAndScreenList.getWidth();
cmbCertAndScreenList.growMin = newWidth - 17;
}
}
Breaks on this when trying to setValue for a datefield:
_frmMain.form.items.each(function (i) { if (i.dataIndex) i.setValue(record.data[i.dataIndex]); } )
This is where error occurs:
formatDate : function(date){
return Ext.isDate(date) ? date.dateFormat(this.format) : date;
},
Any idea?
Thanks
Last edited by Daniil; Nov 02, 2011 at 4:11 PM.
Reason: [CLOSED]