Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_objects thread: A Stange Problem with Window.Opener


Message #1 by "Robert T Turner" <rturner003@b...> on Fri, 22 Feb 2002 07:34:45
Absolutely

Robert T Turner


-----Original Message-----
From: Greg Griffiths [mailto:greg.griffiths@g...] 
Sent: 22 February 2002 16:57
To: JavaScript Objects
Subject: [javascript_objects] Re: A Stange Problem with Window.Opener

I assume that you are using something like

opener.document.<form name>.<field name>.value = document.<form
name>.value;

At 07:34 22/02/02 +0000, you wrote:
>I have two applications, althought it shouldn't matter one is sourced
from
>perl and the other from asp,and they both carry out the same function
but
>with different results. The function is that from a javascript routine
a
>popup window is called where a user selects from a list and the presses
a
>continue button. A javascript routine in the pop up window then takes
data
>from the selected item and puts that into input boxes on the main form.
>
>To to this is use the opener.document.form.control=value.
>
>On one this works and the other the javascript just stops. After a bit
of
>playing around I discover it was a problem with the opener object. I
>therefore thried the following bit of code immediately the continue was
>pressed:   alert(window.opener.name). Again the asp sourced system
>retunred a value the other just stopped working with no alert box
returned
>at all.
>
>Has anybody any idea why this happenning. I mean this is all client
side
>Javascript running on exactly the same browser!
>
>cheers
>Robert T Turner
>$subst('Email.Unsub').


$subst('Email.Unsub').



  Return to Index