Opened 14 years ago
Closed 14 years ago
#5594 closed defect (invalid)
Documentation Incorrectly States you can have a Script inside an Input
Reported by: | guest | Owned by: | Neil Roberts |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Doc parser | Version: | 1.0 |
Keywords: | dijit connect script | Cc: | |
Blocked By: | Blocking: |
Description
I have been trying to follow the "new" dojo way of programming widgets, including using dojo/connect scripts. See http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/common-attributes.
We have made our dojo widgets based their HTML counterparts, just like the example, so dijit.form.CheckBox is rendered as <input type="checkbox ... />. This is useful since during the split-second before dojo rendering it still looks like a checkbox. However, this is not possible: it must be rendered as a <div> tag.
This is because if you try to put a <script type="dojo/connect" ... /> tag inside an input tag, it is not found by the parser (at least inside FireFox).
Please see the attached screenshot.
Attachments (1)
Change History (2)
Changed 14 years ago by
Attachment: | firebug_screenshot.gif added |
---|
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
problems with the documentation must be logged in the book
Screenshot of FireFox/FireBug?