ColdFusion-UI-the-Right-Way
ColdFusion-UI-the-Right-Way copied to clipboard
CFINPUT-AUTOSUGGEST
This example has a cfoutput loop inside an inline script. I think it could be written more core to how JavaScript handle things by putting it into an external script.
Phil,
I couldn't agree more.
Using ajax to pull the data into an external .js file would achieve this.
It would be great if you refactored my code using ajax to retrieve the data and then contributed the code as an alternative to mine.
I don't mind refactoring it myself, but it would be better if there were different solutions, from different people, to look at.
Perhaps you could call your contribution cfinput-autosuggest-1.
I would rather not have multiple solutions here. I mean, I'm not opposed to them in general, but my gut says the benefit of this project is to show one example to help wean you off cf*, and then give you inspiration to try yourself. The end of each article can list different implementations, libraries, etc, but I want to see only one main solution.