Login Register

onblur

How do I cause dojo to stop an event after calling to my event listener

We are using the dijit.form.DateTextBox dojo object. We need to register on the OnBlur event in order to cause the page to be recreated when the date is changed.
While the page is being recreated the original controls are deleted and the whole page is recreated, there for after calling this event listener dojo is continuing with its own code but the object doesn't exist anymore so we get an error:
'this.domNode' is null or not an object
Can we use another way to register the OnBlur event in order to avoid this situation?
Or is there a different solution?

dojo.connect with dijit.Editor

I've got an application where editor(s) are created programmatically, and then (for some of them) an onBlur event is attached to the Editor. The javascript looks something like:

function loadIditable(json) {
//get json object from perl
var myJSONObject = eval('(' + json + ')');

for (var cnt=0;cnt

strugling to add onblur event to my text field

Hi ,

I am new to dojo tool kit.
my aim is to add onblur validation to my text field

how I can do this validation(it should be customized)

I tried this

dojo.addOnLoad(function(){
dojo.connect(dijit.byId('rchTxt'), "onblur",f1());
});

but f1 function is calling only once that is onload

how I can add this event

thanks in advance

Syndicate content