Accessing value from parent window to child

Hi All,The start and end times in the child form should pick up the start and end times from the parent form.

the parent form has start and end times and child form also has start and end times, i want to pick value from parent form to child form using java script .

please help me, very very urgent.

Thanks,

Prasad

Subject: accessing value from parent window to child

Prasad, to access values from parent-child using JS, you need to use opener property. For ex. If you wanna pass the ParentID (ID of Parent form) to ChildID field (ID of Child Form) - you can write follewing on Child Form–

document.forms[0].ChildID.value = opener.document.forms[0].ParentID.value

Hope this helps you.

~Cheers

Subject: accessing value from parent window to child

Hi ,As per your requirement if you want to send field values from perant to child window then you can use CGI variables .You can pass the field values through the url eg.

http://yourserver/your.nsf/yourform?openform&startT=fieldvalue1&endT=fieldvalue2

And you can fetch the value form url using @URLQueryString(“startT”) similarly for endT.

If you want to send back fieldvalue from child to parent then you can use…

window.opener.document.getElementById(“yourfieldname”).value=filedvaluetopass

Hope it will solve your problem…

Subject: RE: accessing value from parent window to child

Hi Ashutosh Sarang,

thank you very much for reply.i will check it.

Thanks

Prasad