View Full Version : IE8 Error: Function expected in ext-all-debug.js at line 52816

28 Aug 2009, 2:03 PM
I get the following error when double-clicking on a record in a grid in IE8.

"Function expected" in ext-all-debug.js at line 52816

See the attached screen shot to see the code.

I have no problem in FF. Any ideas?

29 Aug 2009, 2:21 AM
You specified an invalid vtype in a field.

Valid values are 'email', 'url', 'alpha' and 'alphanum' (but you can add your own).

8 Sep 2009, 8:28 AM
Thanks, Condor. I tracked down the vtype error using IE8 debugger and I found that I didn't declare the vtype correctly.

This is what I used to have:

Ext.form.VTypes['numeric'] = /^[0-9]{0,254}$/;

It should be:

Ext.form.VTypes['numericVal'] = /^[0-9]{0,254}$/;
Ext.form.VTypes['numericText'] = 'Please enter a numeric value';
Ext.form.VTypes['numeric'] = function(v) {
return Ext.form.VTypes['numericVal'].test(v);