tags:

views:

21

answers:

1

Hi, I am try to run a javascript function after my cfselect bind has executed. Is there any way I can achieve that? Here is my statement.

cfselect name="artType" id="artType" size="1" query="qArtType" display="the_value" value="id"

cfselect id="allValues" name="allValues" multiple="true" bindonload="true" bind="cfc:art.getArt({artType})" size="10" style="width: 100%;"

The first select "artType" drives the second select "allValues".

I want to call a javascript function once my bind has executed. It is called listAll(). Is there any way I can do this. Thanks.

A: 

As far as I know, you will not be able to do that. You might try and bind to a javascript function that handles the ajax call, but it certainly adds to the amount of code you'll be writing. This might put you on the right track if you're willing to do that here. This also uses jquery to handle the ajax call..

mjw06d