CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Help with array problem.

Print topic Send  topic

Author Message
Frank Rocco
Posted: 09/05/2001, 11:01 AM

Hello,

I want to load a field on a form when the user selects a value from a
dropbox. The javascript code does not see the array atab1.

Thanks

In the form open event, I coded:
sSQL = "Select * from contacts"
openrs objRs,sSQL
atab1 = objRs.GetRows()

In the Header&Footer, i coded:
<SCRIPT Language="JavaScript">
document.Bugs.contact_id.onchange=loadinfo1;

function loadinfo1() {
document.Bugs.WorkPhone.value = atab1(2,5);
}
</SCRIPT>

--
Frank Rocco
St. Elizabeth Medical Center
CC 2.0


   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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