append 4 backslashed (\\\\). That works for me when I want '\w' instead of
'w'. So you start off with \\\\w then you wind up with \\w and finally \w.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-----Original Message-----
From: Ginger Cheng [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: how to keep the escaped dashes in string parameters in
validation.xml?


Hello,
        I tried to implement a conditional mask in javascript. The source file
(htmL) of the browser escaped all the dashes in my mask string correctly.
What happens is the escaped dashes in my mask string all disappear
when  they come to the javascript function in validator-rules.xml. For
example, I use '\w' to stand for all the word chars in my mask string in
validation.xml, in the html, it is '\\w', but it is 'w' in the javascript
function in validator-rules.xml. I am using the 1.1-beta3. Thank you for
any help.
        ginger


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to