PDA

View Full Version : FormLoad - f.clearInvalid is not a function



PV-Patrick
15 Mar 2011, 2:00 PM
I am trying to load data into a form by using the getForm().load(); function and I am receiving the following error in FireBug:

f.clearInvalid is not a function

Here is my load call:


this.getForm().load({
url : 'get_user.php',
method : 'POST',
params : {userid: uid},
waitMsg : 'Loading data...',
success : function(form, action){},
failure : function(form, action) {
Ext.Msg.alert("Load Failed", action.result.errorMessage);
}
});


Here is my returned JSON:

{"success":true,"data":{"userid":1,"firstname":"Test","lastname":"Test"}}

Anyone know why I would be getting this error, known issue with FormLoad? (I do have the 3 fields in the form with their names set accordingly.)

PV-Patrick
15 Mar 2011, 8:10 PM
Still receiving this error with Ext4-PR4, just an update.

ojajoh
31 Mar 2011, 3:42 AM
I'm having the same problem. The error message I receive is slight different:

a.clearInvalid is not a function

Using beta1.