lancemiller777 <> writes:
> 1) http://lance-miller.appspot.com/?page=webform
> 2) see the webform.js link at top of that page.
> 3) turn on debug ( an onclick box upper right )
That’s hardly going to help much.
> Problem: The regex for matching correct protocol and TLD for the URL
> is apparently doing the wrong thing,
You have a variable TLDlist that is
a) offensive to the rest of the word
b) a string literal that you want to use in the regexp
To do the latter, you need to use the RegExp constructor, not a regular
expression literal.
(as is, using ‘TLDlist’ as TLD value works as designed
> and I've been stuck for days.
Using a real debugger would probably have saved some days. E.g., your
debugging info just concatenates some strings and says ‘this is the
regexp’, while that is not true at all.