Login Register

DateTextbox

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?

Do DateTextBox, TimeTextBox support Date and Time selection?

Hi guys,

I've been trying to find out whether dojo supports a Date+Time selection widget. The documentation is a little confusing. The book of dojo mentions that the "selector" attribute for DateTextBox, TimeTextBox has a default of 'both'. (http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/form-validation-s...)

However, this ticket ( http://trac.dojotoolkit.org/ticket/1872 ) suggests that a Date + Time widget is being considered for the future.

Date Obj Problem: IE7:Wed May 7 00:00:00 UTC+0200 2008 / FF2:Wed May 07 2008 00:00:00 GMT+0200 (CEST) ???

Hi there,

I'm getting bugged for a long time and haven't found a solution yet :(

When I use datetextbox, the value is getting submitted
in FF2:Wed May 07 2008 00:00:00 GMT+0200 (CEST).

That works great.

But in IE7 the date-style differs from FF2:
Wed May 7 00:00:00 UTC+0200 2008

Following my PHP-backend is not able to "read" and convert the
date-string from IE7.

I read all threads here I found, but I did not know
how to solve this problem :(

my dojo-config is

djConfig = {
parseOnLoad: true,
isDebug: false,
debugAtAllCosts: true,
useXDomain: true,

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?

Button with an onclick event next to a DateTextBox

Hi,

I have a DateTextBox on my page and I was wondering how to put a button next to the calendar, so when the user clicks on the button, the calendar is displayed. Another question is how to disable the default behavior, which is showing the calendar when the text field is focused.

Thanks in advance.

Regards,

Marco

[solved] dijit.form.DateTextBox rendering problem - Decrement month button not visible in ff2 in linux

I can't see the decrement month sign (<) in the calendar, this works in windows but not in Ubuntu ff2. I've checked the tests and there it looks fine. I can't understand why it ain't working... Here's my "clean" test:

Test
 

DateTime widget

Hi to all,
I'm trying to write a DateTime widget. I'm almost done but I've a kind of cosmetic bug I cannot bypass.
The two input for Date and Time are rendered, but they not respond to the first click. I have to click on one (i.e. Time), than click on Date and the calendar displays. Plus, some times when I click on Date the calendar pop ups, but even an empty time selector pop ups.
Here is the template I'm using:

Setting a range of dates to be "auto-selected" when the calendar loads from a DateTextBox focus

Can this be done in release 1.0?

I'm working on an employee labor scheduling application that requires week selections, not day selections.

When the page loads, that field would be prepopulated with the current (or queried) date range for the week, ex. "3/2/08 - 3/8/08". And when the user clicks in the field, the calendar should popup with that entire week selected.

Also, if the user clicks in the field, then clicks on the 10th of March in the calendar, it should close the popup and insert "3/9/08 - 3/15/08" into the field.

Dialog, DateTextBox and dojo/method problems

Hi,
Using the dialog widget, I point it to a url that results in some content that has a DateTextBox widget.
For reasons that I won't get into here, I need to set the value of that DateTextBox in script (instead of the attribute). But I can't seem to get my script to execute when it's loaded via the href from the dialog. My understanding is that the way to do this is to embed a script in the DateTextBox element with a type of "dojo/method".

A simple test as shown below (as an example) does not work. I would expect to see the javascript alert box when the DateTextBox is created.

Syndicate content