...

View Full Version : How to Pass Values from one Window to Another?



ZeligOn
01-06-2004, 04:43 PM
Hello all,

I have a form on the "main" window
that needs to be filled with the customer
information, I wold like to open another window
that the user can search and select the customer
from the list and submit the information to the "main" window.

Where can I find a tutorial for this?

Thanks in advance...

Roy Sinclair
01-06-2004, 05:31 PM
window.opener from the "popup" window will be a reference to the window object of the "main" window. From there you can set any value in any variable or form field in the main window.

So "window.opener.document.forms.myform.myfield.value" would be the reference to "myfield" of form "myform" in the main window.

ZeligOn
01-06-2004, 06:47 PM
thanks, works fine.

:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum