Problem with \ in a Javascript/Query

2002-08-22 Thread Edwards Robert (air0rae)
I have a page that populates a combo box via javascript. The data that is returned from a query is (quotes included) \\somemachine\somedir\some.exe. The Javascript sets the value via the code new Option('\\somemachine\somedir\some.exe','\\somemachine\somedir\some.exe' ) (that's the double quotes

Re: Problem with \ in a Javascript/Query

2002-08-22 Thread BEN MORRIS
In JS, the \ is the escape character, so (i think) if you just do some sort of replace to double-up all the slashes so it comes out in the js code as: somemachine\\somedir\\some.exe [EMAIL PROTECTED] 08/22/02 09:28AM I have a page that populates a combo box via javascript. The data that

Re: Problem with \ in a Javascript/Query

2002-08-22 Thread Tim Painter
PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 9:28 AM Subject: Problem with \ in a Javascript/Query I have a page that populates a combo box via javascript. The data that is returned from a query is (quotes included) \\somemachine\somedir\some.exe. The Javascript sets

RE: Problem with \ in a Javascript/Query

2002-08-22 Thread Edwards Robert (air0rae)
Parcel Service Fax:(502) 359-0094 EMail: [EMAIL PROTECTED] (2B || !2B) == ? -Original Message- From: BEN MORRIS [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 9:46 AM To: CF-Talk Subject: Re: Problem with \ in a Javascript/Query In JS, the \ is the escape

RE: Problem with \ in a Javascript/Query

2002-08-22 Thread Kwang Suh
You can use the jsStringFormat() function to escape any special JS characters. -Original Message- From: Edwards Robert (air0rae) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 7:28 AM To: CF-Talk Subject: Problem with \ in a Javascript/Query I have a page