Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9034 closed defect (fixed)

dijit.Dialog Example 4 is broken

Reported by: burnsmicro Owned by:
Priority: high Milestone: 1.4
Component: Documentation Version: 1.3.0
Keywords: Dialog Example; dijit.Dialog Example Cc:
Blocked By: Blocking:

Description

http://docs.dojocampus.org/dijit/Dialog --> Example 4:

"Confirming Dialog Contents"

Clicking the "Ok" button in the dialog box should execute checkData(), line 28. This code is not executed

This button is defined in markup on lines 71/72:

<button dojoType=dijit.form.Button type="submit"

onSubmit="return checkData();">OK</button>

Change History (2)

comment:1 Changed 11 years ago by bill

Milestone: tbd1.4
Resolution: fixed
Status: newclosed

Right again, thanks for the heads up; I fixed the example. onSubmit isn't supported on buttons, only on forms (and not on Dialog either even though Dialog is form-like). Used onClick instead.

comment:2 Changed 11 years ago by bill

Component: DijitDocumentation
Note: See TracTickets for help on using tickets.