Skip to main content

Bug Tracker

Side navigation

#1269 closed bug (worksforme)

Opened June 05, 2007 01:40PM UTC

Closed June 15, 2007 05:52AM UTC

JQuery .css() background url and https

Reported by: ryanjlowe@gmail.com Owned by:
Priority: minor Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:
Description

We are using JQuery in a production environment at Indiana University for our Online Course Management Application, Oncourse. JQuery is working wonderfully, and we are very happy with all the great work you have done with it.

We ran into a very minor bug on production during our last release. Using IE (6 & 7) over https, we had received security warning popups stating that secure & non-secure content was being requested at the same time.

I was able to track the issue down to a line of JQuery code that was setting a background image via the css() function dynamically, something like:

$(item).css("background url(../path/to/image.jpg)");

This may not even be a bug, but I thought I would report it anyway.

Thanks again!

Ryan

Attachments (0)
Change History (1)

Changed June 15, 2007 05:52AM UTC by brandon comment:1

resolution: → worksforme
status: newclosed

It might be a copy and paste error but it should be this:

$(item).css("background", "url(../path/to/image.jpg)");

This isn't an issue with jQuery in this case ... you just have to make sure your images are loaded via https.

It sounds like you might have resolved the issue ... what did you do? If you can create a simple test case that reproduces the error, feel free to reopen the ticket.