Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
I have 2 autocompleters on my form. After changing the value of 1st combobox (call is cb1) , the values of 2nd combo box should be changed.
This works great when I use the drop down control to change the value of cb1. The options in cb2 are changed. Problem is that when I type in the value into cb1, the ajax call to re-populate cb2 doesn't fire. It only fires if I use the drop down control to change the value in cb1. Am I missing something obvious?
Here's what my setup looks like. Thanks for any help you can give.
I added that, and now I undestand that it is really meant for a single autocompleter only, so that the list of values to choose from for the current list is reduced with each key stroke. So when you get to the end of the characters in the value, there is no need to perform the ajax query, since you've obviously already four your value. I can see the call to the server with first M, then M0
But for what I'm trying to do, I'm not autocompleting cb1, but setting up the values in cb2. The user wants to be able to either type in the value or select from the drop down, in each of the two combo boxes.
Hmm, not sure--you might be able to use one of the notifyTopics variations on autocompleter #1 and link it to a listenTopic on autocompleter #2, at least that's the approach I'd try first. The Dojo 0.4.mumble docs might help (they're a minor PITA to find, but they're still available) but... they might not--they're not on the same level as more recent Dojo versions.