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
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
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
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
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
5 matches
Mail list logo