In the following line replace checked with value:
opener.document.form1.choose_category_name.value
document.form2.catID[i].checked ;
This line should look like:
opener.document.form1.choose_category_name.value
document.form2.catID[i].value;
Majid
----- Original Message -----
From: "suhailkaleem" <suhailkaleem@p...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Friday, February 28, 2003 1:52 PM
Subject: [javascript_howto] Re: undeifned in the parent window text fiild
> i still get true or flase in the text feild
> please help
>
> Suhailkaleem
> ----- Original Message -----
> From: "Abdul Majid Qazi" <majid@i...>
> To: "JavaScript HowTo" <javascript_howto@p...>
> Sent: Friday, February 28, 2003 11:06 AM
> Subject: [javascript_howto] Re: undeifned in the parent window text fiild
>
>
> > Remove quotes from the document.form2.CatID... It should be like this:
> >
> > if (eval(document.form2.catID[i].checked) == true)
> >
> > Majid
> >
> >
> >
> > ----- Original Message -----
> > From: "suhailkaleem" <suhailkaleem@p...>
> > To: "JavaScript HowTo" <javascript_howto@p...>
> > Sent: Thursday, February 27, 2003 12:30 PM
> > Subject: [javascript_howto] undeifned in the parent window text fiild
> >
> >
> > > hi !
> > > i always get a undeifned in the parent window text fiild when i try
> this
> > > code in child window
> > >
> > > opener.document.form1.choose_category_name.value
> > > document.form2.catID.checked;
> > >
> > > form name and field name are correct
> > >
> > > ok now on my asp page i have loop that will display products and every
> > > product have radio button with it the value of radio button is set to
> the
> > > id of product i want to pass the selcted radio button value to parent
> > > window i tired this but it only gives me true or flase in the parent
> > window
> > > text feild-
> > >
> > > i want the selected radio id passed to the hidden feild and name of
the
> > > product pass to the text feild in parent window .
> > >
> > > for (var i=0;i<101;i++) {
> > > if (eval("document.form2.catID["+ i +"].checked") == true)
> > > opener.document.form1.choose_category_name.value
> > > document.form2.catID[i].checked;
> > >
> > >
> > > }
> > >
> > >
> > > Thanks
> > > Suhail kaleem
> > >
> > >
> > >
> > >
> >
> >
> >
>
>