Secure and unsecure items


#1

Hi,

I host a secure ruby on rails appplication over https (at textdrive).
All worked fine, untill I started using the javascript library ‘lowpro’
with some additional script which does adjusts some layout when I resize
the browser through window.onload & window.onresize events.

Now I get a “this page contains both secure and unsecure items” popup in
IE6 for every page.

I’ve always used relative paths, and I am using relative paths now also.
I used javascript libraries ‘effects’, ‘dragdrop’ & ‘controls’ before
and I also use several AJAX requests. I never got this popup before.

Does anyone have a clue why I have this problem now?

Thanks,
Bas


#2

Bas van Westing wrote:

I’ve always used relative paths, and I am using relative paths now also.
I used javascript libraries ‘effects’, ‘dragdrop’ & ‘controls’ before
and I also use several AJAX requests. I never got this popup before.

Does anyone have a clue why I have this problem now?

Thanks,
Bas

Any chance that your Javascript file is not being served from the https
site?

Cheers
mohit.


#3

Mohit S. wrote:

Any chance that your Javascript file is not being served from the https
site?

Thanks for your response, but that was not the problem. Bit I did find
the reason however:

I use the lowpro.js library which defines the ‘Event.addBehaviour’
method.
The popup was triggered by this piece of javascript (which is served
over https):

-----------START CODE----------------------------
Event.addBehavior({
#content’ : function() {
MyFunctions.resize_content()
},

‘body’ : function () {
$(document.body).setStyle( {
overflow: ‘hidden’
} );
}

});
-----------END CODE------------------------------

I now worked aroud this code with the following setup:

-----------START CODE----------------------------
var MyFunctions = {

//....

init_on_load: function() {
   MyFunctions.hide_body_overflow()
   MyFunctions.resize_content()
}

};
window.onload = MyFunctions.init_on_load
-----------END CODE------------------------------

Not the IE6 popup is gone.

Regards,
Bas


#4

Bas van Westing wrote:

Great!

Cheers
Mohit


#5

Bas van Westing wrote:

I now worked aroud this code with the following setup:
I now worked around this code with the following setup:

Not the IE6 popup is gone.
Now the IE6 popup is gone.