You can use cfwddx to create JS objects/arrays from CF variables. If you
use the query directly, you will need to have the JS wddx object in your
page. Find more info in the cf docs:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/xml51.htm

Pascal

> -----Original Message-----
> From: Kevin [mailto:[EMAIL PROTECTED]
> Sent: 26 July 2004 10:16
> To: CF-Talk
> Subject: HELP. CF and _javascript_ question
>
> Hi all,
>
>
>
> I have a problem. I have a page that I want to populate a section of
the
> form with data from my database based on the selection in a drop down
> list.
> I have got the query to pull the records and use that to populate the
pull
> down list. I know that to change the values of the fields with the
> matching
> data I need to use _javascript_ but I don't know how to get the records
from
> the query recordset into a _javascript_ array. I figure that if I have
all
> the
> records in an array I can set the value property of each of the
matching
> form fields from the array. First am I on the right track and second,
How
> do
> I move the records from the query to the array in _javascript_?
>
>
>
> Thanks,
>
>
>
> Kevin
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to