I m having a hard time figuring out how to do something in IE that is
fairly easy to do in NN/Moz.
What I want to do is have some Javascript code in one window open up a new
window, and then be able to rgularly interrogate the url currently being
displayed by that second window. In particular, if a var named
SHARED_WINDOW
holds a reference to that second created window, then I want to look at
the value of
SHARED_WINDOW.location.toString();
In NN/Moz, all you have to do to is put in the request
netscape.security.PrivilegeManager.enablePrivilege
("UniversalBrowserRead");
in the same function as the first line above, and if your script is signed
(or if you have enabled codebase principals), then the user will be
prompted to grant permission. I have tried this, it works great.
But how do I get this to work in IE???
I have tried this in IE, and I always get security errors when I try to
interrogate the second page as soon as it is anything other than
about:blank. The security setting in IE (e.g. low, medium, etc) has no
effect on this. Indeed, the following URL seems to indicate that this is
fundamentally impossible in IE:
http://msdn.microsoft.com/library/default.asp?
url=/workshop/author/dhtml/reference/methods/open_0.asp
Please tell me that this is not true, that there actually is a way to do
it!!!
I cannot believe that IE does not provide something equivalent to NN/Moz
for greater priveleges...