CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Pass Multiple variables from popup

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.