Login Register

no submition with DateTextBox

I don't realy understand how to use DateTextBox.

When I submit the form this this input, i see in th URL le name of the variable, but not this value.
And if, with firebug, I give a name to the second input balise, who is create for the DateTextBox, I have the name AND the value of this input in the URL (and the other name too)?

Could you explain me why? And how can I have the date in the URL.

code missing

Drupal looks like it swallowed your code example. You can use special markup to embed code in a post, but it might be easier if you could just throw it on a webserver somewhere.

What should happen is you declare an input with name="foobar" of dojoType dijit.form.DateTextBox. Under the covers, dijit will rename that input and create a new one by that name which will ultimately get the value associated with your widget, but in ISO format (YYYY-MM-DD) on submission to the server. No intervention necessary.

There are examples in dijit/tests/form

the problem was me

I'm sorry, because, my problem was that i used DateTextBox like others input.
I used the DOM to write some value in the HMTL element.

Since, i use javascript dijit libary, everything is ok.