Login Register

onChange

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) {

Grid editor bool

i have a grid with a bool cell editor, and i need to catch the onchange event on the checkbox or access to it's value but i don't know how...
so if something can help it would be greatful.
I'm using dojo 1.2 cuz it solve to me some xmlstore and grids issues,

i define the grid layout under script tags on a html file, and the xmlstore to populate the grid and the grid itself using the markup layout.

erick

thanxs in advance

dojo.connect of a Dijit to onchange event does not work in IE7

dojo.connect(object, "onchange", function) does not work in IE7.

This code replicates it. The utterly bizarre thing is that if I remove the dojo.require of dijit.form.Form and dijit.form.ValidationTextBox, the dojo.connect will work. The form looks ugly, as expected, but the event handler works.

Also, only onchange is a problem -- onclick works with no problems. I tried grepping the tests to find a dojo.connect with onchange, but I can't find one.

Am I doing something wrong in the below example, or should I submit a bug?

attribute onchange doesn't work in a dijit.form.Form

Hello,

With a classic html form tag, the attributes onchange, onkeyup... used into the tag 'form' work well. But if you add dojoType="dijit.form.Form", they don't work anymore.

<form dojoType="dijit.form.Form" id="myForm" onkeyup="updateIcao(this);" onchange="updateIcao(this);">

The same thing if you use :

<script type="dojo/method" event="onChange">

Is it an other solution?
(putting an "onchange" attribute on each field of the form is really complicated for my application)

Thank you!

Help, no event object is passed by dojo.connect

hi.
I build programmaticly a dijit:

var mydijit = new dijit.form.FilteringSelect (props, nodeID);

Then I connect to onChange-Listener

dojo.connect(mydijit,'onChange',function(e) {console.dir(e);});

Console says
object {
0: "10"
endWith: function()
trim: funtion()
}

Anybody an idea whats going wrong?
I never got an real Even-Object passed :(
I never found a solution to track back a fired event function :(

please help, I searched the whole site
greetings,
melchior

IE doens't trigger onChange Event in DateTextBox

Hello guys
I'm facing a strange problem with Internet explorer and DateTextBox..
I have this in my code

DateTextBox Validation

Hi, I'm brand new to Dojo, and I'm attempting to use the DateTextBox widget to give users a localized calendar from which to select a date. The localization aspect is working well, so that part is great.

My problem is that I need to be able to send the localized displayed value to the server rather than the universal Dijit value. I've been able to accomplish that with a dynamic serialization formula. However, for complicated reasons, I also need to be able to validate the displayed value rather than the Dijit value using an existing script. How can I do that?

dijit.InlineEditBox and onChange

I'm creating a bunch of dijit.InlineEditBoxes programmatically, and having some trouble with the onChange event. While if you create the editboxes statically, you can set a complex onChange function, ie

Edit me

when creating them programmatically, it seems that the onChange has to be a pointer to a function, and only passes the new value of the editbox; ie

var inlineEdit = new dijit.InlineEditBox({
autoSave:true,

TimeTextBox onChange firing twice

I've set an onChange function to a TimeTextBox that is firing twice; once when the value is selected from the drop down and again when the focus is moved off the widget. Is there a way to avoid the onChange happening twice or somehow cancel the second event?

modified test_TimeTextBox.html :

Syndicate content