Opened 11 years ago

Closed 11 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)

firebug_screenshot.gif (21.8 KB) - added by guest 11 years ago.
Screenshot of FireFox/FireBug?

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by guest

Attachment: firebug_screenshot.gif added

Screenshot of FireFox/FireBug?

comment:1 Changed 11 years ago by Adam Peller

Resolution: invalid
Status: newclosed

problems with the documentation must be logged in the book

Note: See TracTickets for help on using tickets.