Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: problem with window.opener


Message #1 by "Ejaz Hanif" <ejaz@p...> on Tue, 27 Aug 2002 06:43:08
try this
 window.opener.document.masterpform.dmp.value=vp;
for second problem
either call go(this.form) or go(document.mpr)
then in function go(f){
var vp=f.dp.value
---
or you can also do it
as if you donot want to pass any value where call is made to go()
function go(){
var vp=document.all.mpr.dp.value;
or
var vp=document.mpr.dp.value;

Arun Jassiar
----- Original Message -----
From: "Ejaz Hanif" <ejaz@p...>
To: "javascript" <javascript@p...>
Sent: Tuesday, August 27, 2002 6:43 AM
Subject: [javascript] problem with window.opener


> hi fallows
>
> 1.when i want to send the values from child window to parent window....it
> doesnt insert proper value my code is as below. it inserts the value
> as 'NaN'.
> 2.My form name is 'mpr' and input box name is 'dp' when i try to get the
> value it returns 'undefined'. but there is a vlue in the input box.
>
> thanx a lot
> Ejaz
> -----------------------CODE-------------------------
> function go()
> {
> //var vp=mpr.dp.value;
> var vp="123";
> document.write (vp);
> window.opener.document.masterpform.dmp.value='+vp+';
> self.close();
> }
> ---------------------------------------------------
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>


  Return to Index