473,372 Members | 1,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 3530
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
2
by: find clausen | last post by:
I have opened this fullscreen (framed) window from a "top-page-setup-box" if (window.opener.top.location ....... How can I close it again from the same page, like: ...
1
by: Diana | last post by:
Hi there, I'm having some difficulty in renaming a window object. I'm opening the window in question via a targetted submit: <!-- CODE EXCERPT FROM WINDOW 1 --> <form target="newWin"> ...
2
by: Geoff Wilkins | last post by:
I fear this may be a FAQ - in which case my apologies - but I've failed to track the answer down. I want to close a window from another window it opened. I assumed that ...
6
by: Matt | last post by:
When I do the following, the mycode will still execute. The reason I put window.opener=top; is to disable the close confirmation dialog box. window.opener = top; window.close(); //mycode... ...
12
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application {...
3
by: ctrl+alt+delete | last post by:
I have a normal window cotaining a form (named form1). The form has a text input called imageURL. There is a button that, when clicked, opens a new window that contains three frames (left, right...
2
by: JPL Verhey | last post by:
(i hope somebody (else) will read and have an idea! Thnx) Hi, With a script in a popup window, I want to check if certain content is present in a page loaded into the frame "main" of the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
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...
0
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
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.