Click to See Complete Forum and Search --> : Passing parameters between pages


Caliban
07-22-2003, 06:46 PM
Hi JS gurues,

this is the scenario:

I have two (2) pages, A.html and B.html

1) A calls B, sending it 1+ parameters
2) B processes the 1+ parameters, and returns info to A

Any ideas/code ? :)

T.I.A.

Khalid Ali
07-22-2003, 07:02 PM
If the A and B have parent child relationship then just use
top.opener.document.formName.fieldName.value=...
to send info to parent

nd to to send data to child
childRef.document.formname.fieldname.value = ....

if they are t totally separate windows then you need to target them using the url..append as your data to url and parse it at the other end.

Caliban
07-22-2003, 07:23 PM
Hi Khalid,
I must confess I didn't understand none of the 2 answers you kindly gave me. It's the first time I heard about these possibilities ...

I think the parent/child relationship will work for me. But I don't know how to work with it. Are you kind to send me a li'l sample code for it?

Just a li'l sample ... pls ... :D
I'll try to understand it and make it works for me.

T.I.A.

Khalid Ali
07-22-2003, 08:25 PM
No problem,its not li'l sample it s complete working example..have fun learning..:D

http://68.145.35.86/skills/javascripts/ParentWinInteractionWithChildWin.html