07-14-2009, 03:58 PM
[eluser]Unknown[/eluser]
Apologies for cross posting but as I haven't had a reply on the original post I thought I would start a new post.
I have successfully taken Derek’s code (http://video.derekallard.com/) to create a dynamic information retrieval form. It works great. I now want to add some extra functionality.
I’m building a form where a user will first select their city from a drop down list and then start typing into a text box their town/city which will then automatically appear. Thus, the dynamic retrieval of cities will only select cities from the country selected.
I need to know how to pass the select box data (country) through AJAX along with what the user types into the text box (city/town). I’m guessing I need to add some code to function_search.js in the javascript folder, but am not sure…
I'm not confined to using script.aculo.us so if you've got a solution using JQuery or something else then let me know.
Any pointers would be greatly received.
Thanks
Rob
Apologies for cross posting but as I haven't had a reply on the original post I thought I would start a new post.
I have successfully taken Derek’s code (http://video.derekallard.com/) to create a dynamic information retrieval form. It works great. I now want to add some extra functionality.
I’m building a form where a user will first select their city from a drop down list and then start typing into a text box their town/city which will then automatically appear. Thus, the dynamic retrieval of cities will only select cities from the country selected.
I need to know how to pass the select box data (country) through AJAX along with what the user types into the text box (city/town). I’m guessing I need to add some code to function_search.js in the javascript folder, but am not sure…
I'm not confined to using script.aculo.us so if you've got a solution using JQuery or something else then let me know.
Any pointers would be greatly received.
Thanks
Rob