Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Pop-up and secure connection

Reply
Thread Tools

Pop-up and secure connection

 
 
debedb@gmail.com
Guest
Posts: n/a
 
      07-18-2005
Hi all,

I have a link, <A onClick="javascript:foo()">. The
foo() function does

w = window.open('', fieldid+'mywindow', prop);
w.document.open();
d = w.document;

And proceeds to write stuff there.

The problem is, if I serve the original page off
an https connection, upon the click, IE
warns that I am about to leave a secure connection,
then, when the new window pops up, it warns that I
am about to enter a secure connection.

Is there a way to get rid of these warnings in this case?

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      07-18-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:

> Hi all,
>
> I have a link, <A onClick="javascript:foo()">. The
> foo() function does


Only if JS is enabled.

<URL: http://jibbering.com/faq/#FAQ4_24 >

> w = window.open('', fieldid+'mywindow', prop);
> w.document.open();
> d = w.document;
>
> And proceeds to write stuff there.
>
> The problem is, if I serve the original page off
> an https connection, upon the click, IE
> warns that I am about to leave a secure connection,
> then, when the new window pops up, it warns that I
> am about to enter a secure connection.
>
> Is there a way to get rid of these warnings in this case?


Stop and ask yourself why that warning is there to start with and you
will realize that there is only one way to prevent them - stop going
from secure to un-secure connections.


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
 
Reply With Quote
 
 
 
 
debedb@gmail.com
Guest
Posts: n/a
 
      07-18-2005
> Only if JS is enabled.

That's implied .

>URL: http://jibbering.com/faq/#FAQ4_24


Yes, I've looked there. While I'm genuinely (no sarcasm!) happy
to learn what really goes on here (I'm not much of a Javascript guy),
and
agree this is a bad use of javascript, this does not solve the problem
(using onClick attribute results in the same behavior, of course).

> Stop and ask yourself why that warning is there to start with and you
> will realize that there is only one way to prevent them - stop going
> from secure to un-secure connections.


Ah yes, but it's not going from secure to insecure, in fact. (I know IE
thinks it is).
Because it pops up 2 warnings, in succession: secure->insecure, and
then
insecure->secure when it realizes that pop-up is also secure. That's
the
point.

 
Reply With Quote
 
Randy Webb
Guest
Posts: n/a
 
      07-18-2005
(E-Mail Removed) said the following on 7/18/2005 7:08 PM:
>>Only if JS is enabled.

>
>
> That's implied .
>
>
>>URL: http://jibbering.com/faq/#FAQ4_24

>
>
> Yes, I've looked there. While I'm genuinely (no sarcasm!) happy
> to learn what really goes on here (I'm not much of a Javascript guy),
> and agree this is a bad use of javascript, this does not solve the problem
> (using onClick attribute results in the same behavior, of course).
>
>
>>Stop and ask yourself why that warning is there to start with and you
>>will realize that there is only one way to prevent them - stop going
>>from secure to un-secure connections.

>
>
> Ah yes, but it's not going from secure to insecure, in fact. (I know IE
> thinks it is).
> Because it pops up 2 warnings, in succession: secure->insecure, and
> then insecure->secure when it realizes that pop-up is also secure. That's
> the point.


In IE, on your secure site, test this code:

var myWindow = window.open();
myWindow.location= 'https://.......';

And you will see the same behavior. The reason is that IE thinks if you
have a window open, then it must have a URL. But instead of opening the
URL you specify, it opens about:blank and then navigates to the URL in
the window.open call. So, it goes from secure>about:blank>secure which
is secure>non secure>secure.

The simplest solution is to not use a popup Seriously, use an IFrame,
manipulate it's size and visibility and load your popup data in the
IFrame, resize it, then collapse it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure your digital information assets with Secure Auditor. SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:53 AM
Secure your digital information assets with Secure Auditor SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:52 AM
Secure and non-secure message, revisited zdrakec ASP .Net 1 07-25-2005 03:16 PM
This page contains both secure and non secure items. A.M ASP .Net 5 06-08-2004 05:43 PM



Advertisments