Ticket #8117 (reopened defect)
dijit.form.Button causing item to appear in HTTP post content sent to server
| Reported by: | scott.a.jenkins | Owned by: | bill |
|---|---|---|---|
| Priority: | normal | Milestone: | tbd |
| Component: | Dijit | Version: | 1.2.0 |
| Severity: | normal | Keywords: | dijit.form.Button, HTTP post |
| Cc: |
Description
Summary: dijit.form.Button has a dummy input control somewhere which is posting data to the server.
Details: In a Domino based web application using Dojo, in troubleshooting a bug where the server is not accepting the data posted by the web form, I discovered that an unnamed item is being sent in the post data.
By unnamed, I mean in the raw HTTP post, it is sent as
&=value
where there is no text between the ampersand and the value.
The value being posted is:
<SPAN class="dijitReset dijitInline" _zipIdx="2" dojoAttachPoint="iconNode" unselectable="on"><SPAN class="dijitReset dijitToggleButtonIconChar" _zipIdx="2" unselectable="on">â??</SPAN></SPAN><SPAN class="dijitReset dijitInline dijitButtonText" id=pickPersonButton_label _zipIdx="2" dojoAttachPoint="containerNode" unselectable="on">Pick Person from Address Book</SPAN>
This appears to be generated by a dijit.form.Button control on the page, whose source is:
<button dojoType="dijit.form.Button" id="pickPersonButton" onclick="pickPerson();">Pick Person from Address Book</button>
Note: I had also tried this with <DIV> tags and the result is the same.
I am attaching the full source of the page as generated by the Domino server--it uses some pretty large Dojo based tools in the mojo namespace, which is my private namespace. I can provide that source if asked, but I am pretty sure that most of the mojo namespace code has no effect, since it is all about doing AJAX calls to fill the inputs on the form.
Due to the way Domino's autogenerated code interacts with dijit.form.Form, I have not used that widget. Instead, that code is simulated, by binding mojo.form.validate() to the submit action of the form domNode.
I am attaching the source code for mojo.form.validate as well, in case it is relevant.
I will try to follow up with a simpler test case, but I wanted to get all of the base information in this ticket.