Changes between Initial Version and Version 1 of Ticket #7493


Ignore:
Timestamp:
Aug 21, 2008, 9:32:52 AM (11 years ago)
Author:
bill
Comment:

Looks like dojo.query() is working correctly to me.

There's no reason to assume that the top node of a widget (this.domNode) has an id attribute. It's often true, but certainly not guaranteed.

You should call dijit.byNode() on each node returned from dojo.query()

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7493

    • Property Status changed from new to closed
    • Property Resolution changed from to invalid
  • Ticket #7493 – Description

    initial v1  
    11Using the dojo version 1.1.1 (latest revision from repository in tags) in FF3 with Ubuntu I tried the following code in a form with some input texts and radio buttons:
    2 
     2{{{
    33dojo.query('[widgetId]').forEach(
    44                            function(w) {
     
    88                                }
    99                            });
    10 
     10}}}
    1111Everything go fine for the input texts, but it retrieves me the following error because of the radio buttons:
    1212
     
    1414
    1515I fixed the problem with the following change in my code:
    16 
     16{{{
    1717dojo.query('div[widgetId],input.dijitCheckBoxInput').forEach(
    1818                            function(w) {
     
    2222                                }
    2323                            });
    24 
     24}}}
    2525
    2626Thanks and keep up the good work,