As a suggestion, give it a go anyway, and see what happens :) the worst that can happen is you get errors and we'll help you with them. You cant break anything or commmit any gross crimes playing with this stuff, cut loose and give it a go :)
HTH
Aaron
----- Original Message -----
From: Kevin
To: CF-Talk
Sent: Monday, July 26, 2004 7:59 PM
Subject: RE: HELP. CF and _javascript_ question
Hi Aaron,
Up to this point I had only worked in a one dimensional array. (i.e.
bannerImg[0] = "somebanner1.gif", bannerImg[1] = "somabanner2.gif" etc.) Now
I need to capture 6 fields for each row. I had thought to do what you
outlined but got lost with the multi-dimensional array. Would the code for
the 2 dimensional array be like this?
<CFOUTPUT QUERY="your query">
customerInfo[#currentrow#][ID] = '#customerID#';
customerInfo[#currentrow#][Name] = '#customerName#';
etc..
</CFOUTPUT>
I truly appreciate all the help and your patients with me.
Thanks,
Kevin
_____
Do you know how to do _javascript_ arrays? Wrap your _javascript_ array creation
code in a CFOUTPUT and create them in CF, the browser will load the page and
create the _javascript_ array.
rough example:
<script>
// create your _javascript_ array
<CFOUTPUT QUERY="your query">
somejsarray[#currentrow#] = '#somefieldname#';
</CFOUTPUT>
</script>
HTH
Aaron
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

