Page 1 of 1
Need help its urgent
Posted: Mon Jun 08, 2009 3:13 am
by dhirajphp
I have a form that uses a child popup form to generate data for some fields on the form. The forms use php & javascript to populate values from the data base values loaded OK, after select i want to pass this value (selected value by CLick on the Link Text) in the parent form but the value is not passed back to the parent form.
Please help..
Re: Need help its urgent
Posted: Mon Jun 08, 2009 3:30 am
by novice4eva
do you open the new form in a new window?? If that's the case then you can use window.opener.FORMNAME.FIELDNAME.value=someValue, or you could also try window.parent.FORMNAME.FIELDNAME.value=someValue. I know these two are different, but pick the one that works..
Re: Need help its urgent
Posted: Mon Jun 08, 2009 7:45 am
by dhirajphp
actualy i like something this:
when user select any value(dynamic values) from the pop up and click to "USE" for the Parent Window then after Child Window closed and value should be entered on the text field and parent window refreshed with the selected value.
Ex- n1
n2
n3
supose user select n1 then selected value comes on the parent window and child window must br closed.
Thanks