cfjedimaster / ColdFusion-UI-the-Right-Way

A list of articles demonstrating how to do UI with ColdFusion on the back end.
100 stars 31 forks source link

CFINPUT-AUTOSUGGEST #56

Open PhillipSenn opened 10 years ago

PhillipSenn commented 10 years ago

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.

cfjquery commented 10 years ago

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.

cfjedimaster commented 10 years ago

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.