471,338 Members | 948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

typeof(this.opener.top) returns "uknown"

this.opener is not null but everything inside it is "uknown". How should
I interpret it?

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #1
7 3437
Irakl Gordin <ig*****@cognitivearts.com> writes:
this.opener is not null but everything inside it is "uknown". How should
I interpret it?


Hard to say. I guess you are using IE, and has opened a new window.

Is the page in the new window in another domain than the opener?
In that case, it could be the security setting that is preventing
cross domain scripting.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #2
Sorry, my bad. Yes, I am using IE and I'm opening a new window. From
that new window I try to access 'opener.top'. It's still in development
so everything is on my HD so it can not be a cross-domain security.
Javascript docs that I have do not even list "unknown" as a possible
return value.

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #3
Sorry, my bad. Yes, I am using IE and I'm opening a new window. From
that new window I try to access 'opener.top'. It's still in development
so everything is on my HD so it can not be a cross-domain security.
Javascript docs that I have do not even list "unknown" as a possible
return value. Thank you for pointing lack of information in my message.

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #4
Irakl Gordin wrote:
this.opener is not null but everything inside it is "uknown". How should
I interpret it?


What is this "everything" you are referring
to and how have you attempted to access it?
PointedEars
Jul 23 '05 #5
Irakl Gordin wrote:
this.opener is not null but everything inside it is "uknown".

this.opener does not necessarily refer to the same object as
window.opener/self.opener does. `this' in an intrinsic event
handler attribute value refers to the the object that triggered
the event, in a method it refers to the calling object.
Sorry, my bad. Yes, I am using IE
Which version on which platform?
and I'm opening a new window. From that new window I try to access
'opener.top'.


If this.opener is not null, is it undefined? Try the typeof operator,
then try window.opener or self.opener.
PointedEars

P.S.
Please quote required parts of the disscussion so that the reader does
not lose context. I have re-included one quotation level here.
<http://www.netmeister.org/news/learn2quote.html>
I suggest you do not use Web forums to post to Usenet as almost all of
them are flawed.
Jul 23 '05 #6
I removed irrelevant code from this sample

if (typeof(this.opener) != "undefined")
{
if (this.opener != null)
{
if (typeof (this.opener.top) == "unknown")
{
alert("always fires on certain machines");

typeof on all variables defined within opener also returns "unknown".

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #7
Irakl Gordin wrote:
I removed irrelevant code from this sample

if (typeof(this.opener) != "undefined")
{
if (this.opener != null)
{
if (typeof (this.opener.top) == "unknown")
{
alert("always fires on certain machines");

typeof on all variables defined within opener also returns "unknown".


That does not help a bit. In which context are you using
the `this' reference and what about the rest of my posting?
PointedEars
Jul 23 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Scott | last post: by
2 posts views Thread by find clausen | last post: by
2 posts views Thread by Geoff Wilkins | last post: by
3 posts views Thread by ctrl+alt+delete | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.