Bug Tracker

Modify

Ticket #1269 (closed bug: worksforme)

Opened 6 years ago

Last modified 20 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to worksforme

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.

comment:2 Changed 20 months ago by майкл

нихера не рабоатет!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.