Opened 14 years ago

Closed 14 years ago

#5721 closed defect (invalid)

onBlur for a dijit.form.DateTextBox

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: Core Version: 1.0
Keywords: Cc: [email protected]
Blocked By: Blocking:


I first tried adding an onBlur='alert(...)' to the DateTextBox? definition. When this did not work I did the following

dojo.connect(dojo.byId("birthDate"),"onblur", 'demo.checkBirthYear');

I added the dojo.connect to the dojo.addOnLoad method. When I loaded the page I got the following error

[Exception... "'dojo.hitch: scopedemo.checkBirthYear? is null (scope="[object Window]")' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

the demo.checkBirthYear is a valid function.

Change History (1)

comment:1 Changed 14 years ago by Adam Peller

Milestone: 1.2
Resolution: invalid
Status: newclosed

dojo.connect is the right approach, but you'll want to read the docs on the arguments to pass in, particularly #3 (context)

also, you may want to bring your questions to the forums for support. tickets are best used when there is a problem to report. thanks.

Note: See TracTickets for help on using tickets.