“Application Design: Dynamically change state and city drop-down boxes with DHTML” by Thomas Ortega explains ColdFusion / JavaScript integration at http://builder.com.com/5100-6371_14-5168421.html.
“Making ColdFusion thread-safe with cflock” by Andrew Grant provides a good introduction to locking at http://builder.com.com/5100-6371_14-5164421.html.

2 thoughts

  1. Actually, the approach on my site (reference above) is slightly different. The code there will work if you reformat it (mental note: fix blog code to display cf better) and remove the spurious p tags it throws in there.
    The approach I use is to only pull the data as I need it, so adapting my example, if I select Illinois, the JavaScript ServerCommunication piece calls a cfm template with the state=IL in the URL and returns a list of only Illinois Cities e.g. ‘Chicago’,’Champagne’,’Springfield’ which can be parsed in the return function to populate the combo box/drop down or fill in a text field…

Leave a Reply to Adam Howitt Cancel reply