ColdFusion-UI-the-Right-Way icon indicating copy to clipboard operation
ColdFusion-UI-the-Right-Way copied to clipboard

CFINPUT-AUTOSUGGEST

Open PhillipSenn opened this issue 11 years ago • 2 comments
trafficstars

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.

PhillipSenn avatar Jul 29 '14 17:07 PhillipSenn

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.

cfjquery avatar Jul 29 '14 23:07 cfjquery

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.

cfjedimaster avatar Jul 30 '14 01:07 cfjedimaster