permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes Can't reset DOJO DateTextBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Can Watch "Can New topic

Can't reset DOJO DateTextBox

Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

Am I missing something in the code? I create a DateTextBox like this:

It is inside a form. I then create the javascript function like this:

When I call that function, I get a message saying "Object doesn't support this property or method".

I'm using DOJO release 1.3.0.

Any help will be appreciated. The fabulous DOJO documentation says a DateTextBox has a reset function. ARGH!!

Mike Firkser
Rutgers '84
Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

Found the problem, in the function, should call the field by dijit not by dojo:

That's all until my next DOJO problem. Oh well.
I agree. Here's the link:
subject: Can't reset DOJO DateTextBox
Similar Threads
Add days to date() calculations
Time format in Java
Set holding two dates
date comparison using javascript