#988 closed defect (invalid)
dojo.io.FormBind submits multiple times
Reported by: | Owned by: | dylan | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.3 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
The first time a form is submitted in Firefox using dojo.io.FormBind? it submits fine. If the page is not reloaded, the next time the form is submitted it submits twice. The next time 3 times, etc.
Change History (5)
comment:1 Changed 15 years ago by
Cc: | [email protected]… added |
---|
comment:2 Changed 15 years ago by
Summary: | dojo.io.FormBind submits multiple times in Firefox → dojo.io.FormBind submits multiple times |
---|
I have a test case here:
http://www.mofon.net/testmultiple.taf
I have found that it's not limited to Firefox - it does it with all browsers I have tested on Mac and PC.
comment:3 Changed 15 years ago by
Milestone: | → 0.4 |
---|---|
Owner: | changed from anonymous to dylan |
Status: | new → assigned |
comment:4 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
This isn't a bug, just a misunderstanding of how FormBind? works. (But it's not your fault; it's confusing to understand.) Anyway, please read the doc I wrote for this:
http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book23
The upshot is that you should only do the FormBind? once, on page load, not on form submission.
Testcase?