Usergroup: Customer
Joined: May 12, 2003
Total Topics: 7
Total Posts: 56
Posted 09/23/04 - 06:21 PM:
#1
I ran into the same problem with a javascript that I was sure woiuldn't work without the backslashes, it had some regex in them using d character classes to validate that only numbers were entered into certain fields. I found two solutions, one specific to my problem and one more general.
My specific solution was to change all the places where there were d* to [12345678900]* and just not use the shortcut of the character class, in some cases this wouldn't work but in mine it got be by.
The more general solution is to make the javascript external and call it in with
As soon as I saw my javascript wasn't working I remembered this post and thought I'd share.