Yes but you would have to use CF8.
The new ajax stuff allows you to do that.
And since it is just including an ajax library you can do that yourself now.
Look up prototype, jquery etc.
J.J.
On 6/25/07, Devi r <[EMAIL PROTECTED]> wrote:
>
> Hi Adrian,
> I can't populate the select2 box on pageload. Only if the user
> selects the value from select box1, i can populate the select2 box. Tat's
> wat i'm dng it now.
> I just want to know whether there is any way to poulate it dynamically in
> coldfusion????
>
> Regards,
> Devi Bala
>
> >A quick and simple way, fire the functions that autopopulate the fields
> on
> >page load.
> >
> >If select1 populates select2 with a function, call that function.
> >
> >function function1() {
> > //populate select 2
> >}
> >
> ><body onload="function1()">
> >
> ><select name="select1" onchange="function1">
> >
> ><select name="select2">
> >
> >Needs work and more thought, but that's the general idea.
> >
> >Adrian
> >
> >-----Original Message-----
> >From: Devi r [mailto:[EMAIL PROTECTED]
> >Sent: 25 June 2007 04:03
> >To: CF-Talk
> >Subject: Dynamically Populating ListBox Values
> >
> >
> >Hi All,
> > In Coldfusion, Is there any way to dynamically populate a listbox
> >without submitting the form?
> >
> >Screen consists of three pages : header.cfm, leftSearch.cfm, Results.cfm.
> In
> >leftSearch.cfm, there are 3 select boxes : first one is drop down, second
> is
> >listbox and the third is again dropdown. First select box gets populated
> >while the page loads. Depending on the value of the first select box, i
> have
> >the populated the second listbox using javascript on the onChange event
> of
> >the first select box.
> >Similarly for the third select box also.
> >
> >When the form gets submitted, it displays the result correctly in the
> >Results.cfm but the two select boxes values that are in the leftSearch
> page
> >are reset to empty. The first select box which gets populated in the page
> >load itself and the other field values are retaining the same value as
> >chosen by the user. But only the two select boxes loaded by the
> javascript
> >is being reset to empty. I think it is because of dynamic population thr
> >javascript.
> >
> >If my implementation is wrong, please provide me some suggestion to
> >dynamically populate the listbox without submitting the form in
> coldfusion
> >other than AJAX and CFAJAX.
> >
> >Warm Regards,
> >Devi Bala
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282049
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4