XML Feeds

.

[javascript-dev] Re: Javascript function is not a function?

pnyboer pnyboer at slambassador.com
Tue Aug 14 15:55:53 MDT 2007


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.
--
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The Lifespan
2 oz brandy
1/2 oz orgeat
1/2 oz maraschino
3/4 oz mix of (meyer) lemon and (yellow) grapefruit juice
Shake with ice and serve in a Pernod-rinsed cocktail glass


More information about the javascript-dev mailing list