Click to See Complete Forum and Search --> : Get parennt form values in child window.


amit.patel
06-17-2009, 06:51 AM
Hello,

I want to get the parent form's value in child window so how can i get those value.

Thanks and regards,
--Amit Patel

Weedpacket
06-17-2009, 07:24 AM
The parent window's object is available in the child window as "window.opener", so it's window.opener.document.forms.....

amit.patel
06-18-2009, 01:48 AM
Thanks for your help.

Can we submit parent form in child window.means in parent form i have one form like companyFrom and in child window i want to submit that form so i write something like this


window.opener.document.companyFrom.action = '<?php echo base_url();?>company/setCompany
window.opener.document.companyFrom.submit();


but it will give the following error.


window.opener.document.companyFrom is undefined
]