Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Firefox browser issue: / character breaks validator
Me
Junior Member

Posts: 2
Registered: 8/29/2005
Member Is Offline
posted on 8/29/2005 at 09:58 AM Reply With Quote
Firefox browser issue: / character breaks validator


The use of the backslash character / breaks the script in Firefox (still works in Internet Explorer).

example:

'website':{'l':'WEBSITE ADDRESS including http://','f':/^[h]+[t]+[t]+[p]+[:]+[/]+[/]+[w]+[w]+[w]+[.]+/,'r':true,'t':'t_website','mn':'12'},

How do i define a backspace for Firefox compatibility?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/29/2005 at 07:17 PM Reply With Quote

the escape character is "\" so if you want "/" in regexp then it will be "\/"

also you don't need [] for one character,
also if you want http:// at the beginning of the line then it will be just: /^http:\/\/.+/ your regexp will accept hhhttttpppp://blabla
also you require www which is not always in the URL
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Multiple Forms Validation
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004