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 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 within single quotes if it's not too clear).

The problem is, it translates out to \somemachine
omedirsome.exe

(the somedirectory begins with a t, so I'm thinking that it's translating it
to a tab character).  When I pass the selection to another page, it passes
the tab and the formatting as translated, what I need is for the slashes and
characters to be passed as that are in the DB.

Is there anything I can do with regex or something to keep the slashes the
way they are?  Kind of like PreserveSingleQuotes.

TIA,

Rob Edwards                     Phone:  (502) 359-1627
Systems Management Tools   Pager:       (502) 478-1116
United Parcel Service           Fax:    (502) 359-0094
EMail:  [EMAIL PROTECTED]       

(2B || !2B) == ?



______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to