[jQuery] escape character problem
I use the following code to set a css background image style. Note,
the last slash before the file name is a different kind of slash.
This url works fine like this, but the problem is that this slash is
dropped by the time it get's to the
$('.clientBrowserThumb').slice(6,7).click( function(event)
{ showEntity0(1379); } );
$('.imageHolder').slice(7,8).css( "background-image",
"url(/file_depot/
0-10000000/0-10000/1/conman/thumbs\LeBaronTokyo1.jpg)" );
When this runs, the background-image of the element becomes:
url(/file_depot/0-10000000/0-10000/1/conman/thumbsLeBaronTokyo1.jpg);
Notice the slash is gone. I know this is an escape character, but I
kind of confused about what level the issue occurs at.
Is jQuery processing the escape characters? Is the browser chucking
them out after they've been assigned to the css properties?