Re: Passing paramters between windows

by "Hilma" <Hilma(at)hilma.freeserve.co.uk>

 Date:  Sun, 5 May 2002 18:02:23 +0100
 To:  "Brett Errington" <brett(at)opensearch.com>,
<hwg-techniques(at)hwg.org>
 References:  brett
  todo: View Thread, Original
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