Hi zilchman,
you’re doing nothing wrong and I could reproduce the issue easily … now how to fix it is not so easy.
After some research I found that the Validate JQuery plugin that is used by the jformvalidate extension, overloads the Delegate method and this seems to prevent your own handler to be called when the dropDownList selection is changed by the user.
…so no ajax call is made.
This is what is found at the end of js/jquery.validate.js :
.....
$.extend($.fn, {
delegate: function(type, delegate, handler) {
return this.bind(type, function(event) {
var target = $(event.target);
if (target.is(delegate)) {
return handler.apply(target, arguments);
}
});
},
// ....
});
})(jQuery);
Now if you comment this delegate overloads, the ajax call is correctly done when selection changes. However this has some bad effects on other features : for instance validation does not occur anymore when a control lost the focus (but as you are using onfocusout = false this should not impact you).
Commenting a piece of code to solve a problem is not a good idea, but right now let’s say that it’s an acceptable workaround. I’ll try to find a better way to fix that, but it may take some times because I’m not a js expert.
Hope it helped anyway …