Control.Modal over SSL causes nonsecure message to popup

Hi,

I am using the new Control.Modal to generate a iframeTemplate. This has been working great through the development of my project. However now that I have moved the site to https it constatly pops up a message, seemingly randomly, that the page now wants to display secure and nonsecure content.

There is defintely no links to any content outside of the site and I have been looking around and testing and it defintely seems to be linked to the control modal and/or prototype javascript files.

Any ideas. Patrick

Posted October 19th, 2007 at 7:57am by pmccarthy

It seems to me that a lot of people are ahiving this problem with various scripts. Here is a solution for lightbox. Could anyone advise how I might add this for prototye or control.modal?

http://www.dolem.com/forum/showthread.php?tid=295

Posted October 19th, 2007 at 8:32am by pmccarthy

No feedback on this chaps? Must be someone who has used it in a SSL enviroment? Ryan, how about you? Surely you must have some ideas?

Please, any response would be most appreciated.

Thanks.

Posted October 19th, 2007 at 2:31pm by pmccarthy

If it's just a case of setting the src attribute, in Prototype/C.M that would be:


$('modal_iframe').src = '//0';

Ben

Posted October 19th, 2007 at 6:19pm by bbodien

Ah Ben,

Reall;y appreciate you coming back to me on this. Can you confirm where I would need to drop this in?

Like so?

Event.observe(window,'load',function(){ new Control.Modal($('#{href}'),{ iframe: true, iframeTemplate: new Template(''), opacity: 0.7, position: 'absolute', width: 780, height: 620 }); $('modal_iframe').src = '//0'; });

Thanks again for coming back to me.

Posted October 20th, 2007 at 4:26am by pmccarthy

The 'modal_iframe' element isn't added to the DOM until the Modal is opened, so this would have to be done immediately after the modal is opened. If you procedurally open the modal with the .open() function, you could put this line straight after that.

It depends when you get the security warning notice though, if it's too late by then, then this is a bit pointless.

Ben

Posted October 20th, 2007 at 5:25am by bbodien

Thanks. I will give it a try. Its rather bizarre because the security warning pops up randomly. I'll get up and have a cup of joe and come abck and it will be there. OThe status bar will indicate it is trying to open a about:blank. Very strange.

Posted October 20th, 2007 at 5:46am by pmccarthy

Nah, I tied putting it here:


    Event.observe(window,'load',function(){
        $('').src = '//0';
        new Control.Modal($(''),{
            iframe: true,
            iframeTemplate: new Template(''),
            opacity: 0.7,
            position: 'absolute',
            width: 780,
            height: 620
        });
    });
    

and here:


    Event.observe(window,'load',function(){
        new Control.Modal($(''),{
            iframe: true,
            iframeTemplate: new Template(''),
            opacity: 0.7,
            position: 'absolute',
            width: 780,
            height: 620
        });
    });
    $('').src = '//0';
    

But the error still pops up. I open the modal with a hyperlink and this executes this javascript. Are there any other options?

Posted October 20th, 2007 at 5:50am by pmccarthy

The modal names have been blanked becaise of the php variable. Obviosly dropped because of the formatting.

Posted October 20th, 2007 at 5:51am by pmccarthy

Login or Register to Post