Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameter to Parent form

Status
Not open for further replies.

Venkatachari

Programmer
Nov 20, 2000
9
IN
Dear All,

I have opened the child form using popup command. If i submit in child form the control has to go parent form. Also i want to pass the parameter value to the parent form.

I used Opener.focus();. The control is going to parent form. But how do i pass the parameter to parent form?
Pl. help.
 
If you have a global javascript variable in the parent (opener), you can just set it before passing control back:

opener.yourVar = valueYouWant;
opener.focus();

That should do it.

--Dave
 
Dear Patrick,

I want to pass the value to the hidden textbox of the parent form. Can i pass it ? How do i pass.

Thanx in advance
 

Something like this:

Code:
opener.document.forms['yourFormName'].formElementName.value = valueYouWant;

Hope this helps,
Dan

P.S. Who is Patrick?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top