Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1269 closed bug (worksforme)

JQuery .css() background url and https

Reported by: ryanjlowe@… 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

Change History (1)

comment:1 Changed 13 years ago by brandon

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.

Note: See TracTickets for help on using tickets.