WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

SCRIPT tag problem

Version:
printPrint


SCRIPT tag problem
din
Experienced
Avatar

Usergroup: Customer
Joined: May 12, 2003
Total Topics: 7
Total Posts: 56
Posted 09/23/04 - 06:21 PM:
quote post
#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.

Those who say do not know
Those who know do not say
NewsArray News Directory
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.