Need help its urgent

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dhirajphp
Forum Newbie
Posts: 3
Joined: Fri Oct 10, 2008 12:10 am

Need help its urgent

Post 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..
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: Need help its urgent

Post 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..
dhirajphp
Forum Newbie
Posts: 3
Joined: Fri Oct 10, 2008 12:10 am

Re: Need help its urgent

Post 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
Post Reply