Opened 12 years ago

Closed 12 years ago

Last modified 9 years ago

#6299 closed defect (fixed)

Form: make onSubmit and onReset work like native HTML forms

Reported by: bill Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit - Form Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

As per #6280 and #6292, developers expect onSubmit and onReset to work like native HTML forms where they return true/false to approve/reject the submit/reset operation.

Fix dijit.Form so the developer isn't required to call dojo.stopEvent() to cancel the submit/reset operation.

Attachments (1)

6299.patch (6.4 KB) - added by Douglas Hays 12 years ago.
patch for review

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Douglas Hays

Attachment: 6299.patch added

patch for review

comment:1 Changed 12 years ago by bill

(In [13189]) Make comparison of Editor return code ignore irrelevant whitespace. Fixes #6091. Also added reset check, part of patch to #6299 (refs #6299)

comment:2 Changed 12 years ago by bill

Resolution: fixed
Status: newclosed

(In [13191]) Patch from Doug to make onsubmit="return false;" work on dijit.Form (in addition to dojo.stopEvent()), like on native <form> elements. Fixes #6299, refs #6280, #6292.

comment:3 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.