Login Register

subclass

onChange does not get triggered if TextBox has errors

I have a subclass of ValidationTextBox where I override the onChange-function. The problem is that it doesn't get triggered if there is a validation error.

Lets say I have a field that is required and the value of the field is "a". If I change it to "b" and switches focus to another field, onChange gets executed, but if I remove the "b" and switches focus then onChange does not get executed and instead a validation error is displayed.

onChange: function(newValue) {

Trouble subclassing Moveable when using parser?

I believe I've found a bug in Dojo 1.1.1, where objects instantiated using the parser cannot be successfully subclassed. My demo code subclasses dojo.dnd.Moveable so that the objects start in random positions on the screen. I include two versions: one that works (using addOnLoad()), and one that doesn't (using the parser).

Syndicate content