Login Register

name attribute for dijit.form.Button not passed through to DOM

it seems to me that the name attribute does not make it through for the dijit.form.Button. this is a problem because a common way for the server to check if a form has been submitted is to check $_POST['submit'] and if the name is not passed through then the parameter is not set. i have a form that my server handles correctly if my submit button is not a dijit.form.Button but when i make it a dijit.form.Button, it stops working. in both cases i have name="submit" and when i inspect the DOM with firebug the name attribute is empty when i make the button a widget but it is as expected when i don't use the widget.

here is the code the server is using to check if the form was submitted:
if(!empty($_POST['submit']) && $_POST['submit'] == 'submit')

i believe that these 2 previous posts might be similar problems:
http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/getting-id-or...
http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-tabcont...

I believe this has been

I believe this has been fixed in trunk / 1.2 (should be out shortly) ... If you have a small test situation, I would suggest downloading one of the nightly releases and giving it a shot. The nightly checkout can be found at:

http://archive.dojotoolkit.org/

not fixed

i downloaded the latest nightly checkout and the problem is not fixed. when i browse the dom the name is still empty.

here is the declaration of my button

<input dojoType="dijit.form.Button"
                       type="submit"
                       name="submit"
                       value="submit"
                       label="Login">

it works if i just leave out the dojoType.