That's OK for small arrays, but for large arrays it is a real hog of
bandwidth and client-side memory & cycles (similar to the way WDDX does
it).
Dick
"The reason there are two senators for each state is so that one can be
the designated driver."
-Jay Leno -
On Jul 26, 2004, at 2:47 AM, Aaron DC wrote:
> 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
>
> ----- Original Message -----
> From: Kevin
> To: CF-Talk
> Sent: Monday, July 26, 2004 7:35 PM
> Subject: RE: HELP. CF and _javascript_ question
>
> Hi Dick,
>
> What I am doing is this. I am creating an Order Entry form and when
> the user
> selects the customer from the list created from the query the address
> and
> other customer information is then filled in automatically. I am
> talking
> about a total of 5 fields that need to be filled in. I had figured
> that if I
> placed empty text input boxes where the data was to go, I could then
> use
> _javascript_ to change their values to match the customer id selected.
> I was
> going to call the function using the onChange property of the
> dropdown list.
> Being very new to ColdFusion programming I am not sure if I am making
> this
> harder then it needs to be. :-( HELP please. I am begging here. ;-)
>
> Thanks,
>
> Kevin
>
> ��_____��
>
> Kevin
>
> 1) Are you talking about populating something like 3 selects related
> 2) do you want populate it in CF then change it in _javascript_
> 3) How much data are we talking about
> 4) Why do you think you need it in a _javascript_ array
>
> The reason I ask, is that there are several alternatives, that, based
> on your answers.
>
> Dick
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

