I agree, but sadly the file naming situation is beyond my control.
I'm forced to work with these poorly named files. - Dave

On Aug 21, 1:10 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Spaces in file names for web apps are asking for trouble. Any way of getting
> around having the spaces ?
>
>
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, August 21, 2008 2:03 PM
> To: jQuery (English)
> Subject: [jQuery] How to set background image when file name contains a
> space?
>
> Hi, I have an image with path '/documentengine/user/xhuntertest/
> Uploaded_Documents/Toad Getting Started Guide1_thumb.jpg'.  When I try and
> set this as the background of my DIV using
>
>                 $('#frontside').css('backgroundImage','url(' + img
> +')');
>
> where "img" contains the offending name, nothing appears.  I figure this has
> something to do with the space in the file name as other images without a
> space appear just fine.
>
> Grateful for any advice, - Dave- Hide quoted text -
>
> - Show quoted text -

Reply via email to