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? 4 2886
No, by overriding the browser settings, no access to them as it can be a
security hazard, instead, do you really need a popup? Just use the same
window or maybe even an iframe if you need to load another page IN it,
quite often a popup is not necessary for many user-input-requests they're
used for, an absolutely positioned layer with visibility or display to
hidden/none may just suffice.
Danny
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ de****@gmail.com 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
> 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. de****@gmail.com 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Roy Smith |
last post by:
In the recent "transforming a list into a string" thread, we've been
discussing the fact that list.pop() is O(1), but list.pop(0) is O(n). I
decided to do a little timing experiment. To be sure,...
|
by: Andre |
last post by:
Hi guys, newbie question. I am having trouble with a script that is
supposed to login me to my account on yahoo pop server. When i do this:
import getpass, poplib, re
POPHOST =...
|
by: spencer |
last post by:
Hi,
The code.
def buildStackMajor():
for node in dirStackMinor:
#print 's is the node...', node
dirStackMajor.append(node)
dirStackMinor.pop()
print 'POP the stack...', len(dirStackMinor)...
|
by: Will |
last post by:
Hi,
Sorry to be a pest...
But I can figure this out.
I'm pushing to a stack. then I need to check to see if the word is a
palindrome.
Is the code below correct?
if so, how can I check the...
|
by: John Hoge |
last post by:
I would like to open an exit pop when a user leaves my site, but I
don't want to the back button to trigger the pop if the user remains
in my site.
I'm using the onUnload attribute of the Body...
|
by: Stig Brautaset |
last post by:
Hi group,
I'm playing with a little generic linked list/stack library, and have a
little problem with the interface of the pop() function. If I used a
struct like this it would be simple:
...
|
by: Nicholas Parsons |
last post by:
Howdy Folks,
I was just playing around in IDLE at the interactive prompt and typed
in dir({}) for the fun of it. I was quite surprised to see a pop
method defined there. I mean is that a...
|
by: Scott |
last post by:
As said before I'm new to programming, and I need in depth explaination to
understand everything the way I want to know it, call it a personality quirk
;p.
With pop() you remove the last element...
|
by: j_depp_99 |
last post by:
The program below fails on execution and I think the error is in my
pop function but it all looks correct.Also could someone check my code
as to why my print function is not
working? I havent...
|
by: merrittr |
last post by:
I need some C advice I want to read in string commands from a user
when the user enters a \n
I want to push it on the stac. Then at some point , if the user enters
the word print pop off and print...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |