-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm having a minor problem thinking this afternoon. I have a CFC that
returns state abbreviations and state names as a structure. For the
life of me, I can't remember how to loop over the structure to input
it into a select box. Here's a sample of the cfc:
<cfscript>
a = structNew();
a.state = ArrayNew(2);
a.state[1][1] = "AL";
a.state[1][2] = "Alabama";
...
return a;
</cfscript>
I just can't seem to loop over the structure properly using
<cfloop>...
Am I using the structure properly? Should this just be an array
passed back? Are there conventions for this?
The final output I'm looking for is:
<select name="state">
<option value="AL">Alabama
I just keep getting various java errors. Can someone help?
Thanks,
Wayne
**************************************
Wayne Graham
Systems Office
Earl Gregg Swem Library
College of William and Mary
PO Box 8794
Williamsburg, VA 23187-8794
757.221.3112
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBP4GkI1uRxBfF5S5XEQL5KACg0ai+NLynloTFcEMtNu7ak5T+kOEAniLf
PFTAULfYIziYpaIXO+FrL6xs
=sG/k
-----END PGP SIGNATURE-----
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]