473,405 Members | 2,185 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,405 software developers and data experts.

Referencing a calling window via target (or some other way)

Hey folks! I RARELY program Javascript so I know very little about it.
The current project I am on requires heavy Perl, Linux shell scripting,
SSI, MySQL and Javascript and my brain is frying......

What I am hacking is a moveable type install for a travelogue. The
initial page of the site is the usual travelogue but clicking on a link
in the initial page will open a new window that displays a dynamically
coded graphic map of places visited. I can name that window through the
HREF "target" link attribute in the initial page (we'll call it
target="navigator"). Problem is when I click a link there in the
"navigator" window and want that travelogue entry to show up in the
initial window.

I thought I could use <BASE TARGET="travelogue"> in the <HEAD> of the
initial document and then use the HREF Target="travelogue" from the
Navigator window but no luck. Also for kicks I can't get _parent to do
it either.

Does anyone know how to solve this? Seems odd that an initial page can
spawn another window and you can send data to that window but not in
reverse. It seems so simple that I must be doing something wrong.

Many thanks in advance,
JC

Jul 23 '05 #1
2 1139
wo*******************************@gmail.com wrote:
[snip]

Does anyone know how to solve this? Seems odd that an initial page can
spawn another window and you can send data to that window but not in
reverse. It seems so simple that I must be doing something wrong.


The object reference for the "parent" window, from the spawned window's
point of view, is "opener" :

opener.someFunctionInParentPage();

Mick
Jul 23 '05 #2
Jc
Mick White wrote:
The object reference for the "parent" window, from the spawned window's
point of view, is "opener" :

opener.someFunctionInParentPage();


FYI: You should check for the existence of opener before using it,
otherwise if the user closes the original page and then uses the popup
window to make a call back to the now closed "opener", errors will
occur.

if (opener && !opener.closed) {
// do stuff using opener
} //if

Another technique is to close any open popup windows in the onunload or
onbeforeunload events of the main window. This can be done by keeping
track of the window reference returned by the open call, and using the
same logic as above before calling close().

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
header("Location: http://$SERVER_NAME/index.php; Window-target: top""); I am getting a 403 Forbidden upon running this script, which is not what I wanted. Is there a way I can redirect, but at...
3
by: msnews.microsoft.com | last post by:
hi, Is there any other way of implementing the following scenario except framesets. I want to open the user's website link in a new browser window but the URL remain unchanged that is URL...
5
by: Robin Tucker | last post by:
I need to marshal an IntPtr (which I've got from GlobalLock of an HGLOBAL) into a byte array. I know the size of the array required and I've got a pointer to the blob, but I can't see how to copy...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
2
by: Ares | last post by:
I come from China, English not to be good, sorry. How in c# lets the window in other procedures above? Is most frontdemonstrated? May achieve in VB, how does in c#? TopMost=true, is not ...
0
dmjpro
by: dmjpro | last post by:
i use a code ..... in my html page like .... <meta http-equiv = 'Window-target' content = '_blank'> what will be the effect .... what i know about the http-equiv = 'Window-target' ......
0
xxoulmate
by: xxoulmate | last post by:
what are the Other way to retrieve the user of computer over the network, except of putting it on the database. i am using OS 98., what im getting is just only the user currently logged on the...
2
by: eshwaramoorthy | last post by:
Hi, Actually my client want get report in .net other than using crytal report. is any other way without buying additional software? means does microsoft provide anyother reporting services? pls...
2
by: _Who | last post by:
I wish to install SQL SERVER 2008 and VS 2008 Team System. I presently have installed VS 2008 Pro and SQL 2005 There is also a folder called SQL Server Compact edition which I think is from a...
1
by: chandra7g | last post by:
is their any other way to connect php to mysql database other than enabling the ;extension=php_mysql.dll
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
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...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.