Login Register

dijit.form.Button doesn't submit it's name/value when type=submit Dojo 1.0.2

There is a bug filed for this issue and it looks like it's fixed in a later version. The bug is here: http://trac.dojotoolkit.org/ticket/6215

However, I can't upgrade to that version yet. And I'm trying to see if I can fix the dojo code I have locally for now instead of working around the issue by setting hidden fields.

I tried to simply edit the dijit/form/Button.js file to include the 'name=\"#{name}\"' fix listed in the bug report, but that doesn't seem to have solved the issue alone. I'm not sure what else needs to be fixed though I suspect the name parameter isn't getting passed to the Button.js file correctly.

Any input would be great.

Thanks.

should work

Assuming that Button.js defines the parameter:

name: "",

and that it's in the template with a $ sign (not # sign like you had above):

... name="${name}"

then it should work.

=========
Bill Keese
Project Lead (aka BDFL) of Dijit