Forums > Javascript

Javascript function is not a function?

July 18, 2007 | 1:48 pm

Does anyone know what this means?

• error: js: (null): Javascript function is not a function, line 0

Mattijs


August 14, 2007 | 9:55 pm

Here’s one way to get that error…
If you declare a RegExp as a variable outside of a function, such as:
var vpattern = ".*";
var vmodifier = "i";
var vregexp = new RegExp(vpattern,vmodifier);
you’ll get that error. The regexp works, it just generates an error for some reason.
There could be other reasons for this error, too.

Peter.


Viewing 2 posts - 1 through 2 (of 2 total)