ekendricks
Posts: 34
|
| Posted: 06/20/2005, 4:50 PM |
|
I have created a popup that passes a variable back to the main window and populates a textbox with no problem. What I need to accomplish is to pass two or more vairables back to the main window and populate two or more textboxes.
Below is the code I'm using on the popup page. In the onclick event, when I substitue the variables, it will return that one, and on the main page the other text box contains "[Object"].
onclick="'SetOpenerValue("{CPTCodesID}");return'"
<script language="JavaScript">
function SetOpenerValue(Link_CPT)
{
window.opener.document.ProcedureDetail1.CPTID.value = Link_CPT;
window.opener.document.ProcedureDetail1.CPTCodesID.value = CPTCodesID;
window.opener.focus();
window.close();
}
</script>
Thanks for any assistance
Ernest
|
 |
 |
wiseguy
Posts: 6
|
| Posted: 06/21/2005, 2:26 AM |
|
use this format:
opener.document.form.field.value = document.form.field.value;
substitute form and field with the approriate form name and field name
|
 |
 |
|