Closed fbuchinger closed 11 years ago
Hello- Here is a sample that uses manual subscriptions to update dependent dropdowns via AJAX requests: http://jsfiddle.net/rniemeyer/nj3ps/. Maybe you can take a look at that sample first and then we can discuss if you do need to involve postbox in the equation or not. Thanks!
Hi Ryan,
thanks for the helpful example! Turns out I don't need postbox for the ajax updates.
I want to implement ajax-powered dependencies between knockout.observables (e.g. country -> province -> city selection) using postbox. When the user selects a country, an ajax request to a dependencyController should be issued, which in turn responds with values for the dependent province and cities fields.
How can I update the observable values in the publishOn/subscribeTo callbacks?
Here is my initial implementation: