ColdFusion Programming/cfselect problem
Expert: Donald Hammond - 4/18/2008
Questiongood day sir, can i ask a question:
I know that cf is a server side programming, but i need a two dynamic cfselect that respond to each other without sending the page sending to the server.
for example i have three category on my cfselect1:
1. Animals
2. Plants
3. Planets
If i select Animals on my cfselect1 i want my cfselect2 to load all animals from my MSaccess table, and same with the other categories (animals, plants, planets).
Is it possible? Please help.
thank you very much and im looking forward for this.
AnswerYou answered the question yourself when you said it is a server side language. Using CF you can not have them interact without going back to the server.
So that leaves you 1 other choice, load everything into javascript arrays and then use an onChange() with the first cfselect to load the second one using JavaScript.
And before you ask, I will not write the code for this without charging money. It would take some work but it is doable.