开发者

run multiple functions in a single cfselect bind

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 lis开发者_如何学GotAll(). Is there any way I can do this. Thanks.


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..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜