RE: Passing paramters between windows
by "Brett Errington" <brett(at)opensearch.com>
|
Date: |
Mon, 6 May 2002 09:31:15 +0800 |
To: |
<hwg-techniques(at)hwg.org> |
In-Reply-To: |
hilma |
|
todo: View
Thread,
Original
|
|
Hi
Sorry I made one mistake on option 1 :) cause I was just not thinking
and have been using Frames a lot recently. It doesn't actually make the
window a child... they are on the same level. You can refer to the first
window as the opener:
i.e. - window.opener.MyVariable;
Someone please correct me if I'm still wrong... I have this feeling I'm
missing something but I'm half asleep.
Later,
Brett
"That's a pain that will shorely linger, and that's no lie" - Ed Grimley
-----Original Message-----
From: owner-hwg-techniques(at)hwg.org [mailto:owner-hwg-techniques(at)hwg.org]
On Behalf Of Hilma
Sent: Monday, 6 May 2002 1:02 AM
To: Brett Errington; hwg-techniques(at)hwg.org
Subject: Re: Passing paramters between windows
Thanks for all teh answers - much appreciated :-)
I was half way there in many hours, so relieved to know i was going the
right way - and i then got to hitch a lift when i was getting tired :-)
> 1. Just simply set a variable in the parent (source) window and
retrieve
> it in the child window (photo window).
> In Parents:
> MyVariable = "something";
> In Child:
> Image = parent.MyVariable;
!!
This is a new one on me -
Just because i open a target window from a source window, does that make
it
a prent=child relationship?
I can;t see why to do it the (option 2) way if this works, this seems so
much simpler.
But option 2 gets most votes :-)
> 2. Tag the variables on the end of the URL string as parameters like
so:
> http://www.domain.com/page.html?MyVariable=Something
> You can then use JavaScript to retrieve the values from the URL. You
can
> find instructions on this at http://imptech.net.
This is the one!
> 3. If you got access to a server side language such as ASP
Not yet - new to JS, so Server-side will ahve to wait a few months - but
i
assume that this will be the riobght way, when i'm ready for it
many thanks for all these -
hilma
-x-----
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA