using dojo.query to get all descendents of a div tag

View: New views
1 Messages — Rating Filter:   Alert me  

using dojo.query to get all descendents of a div tag

by co-jeff () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I having an issue just not sure if it can be done.  I'm using dojo.query to get dojo widgets in a specific DIV element.  But it seems to only get the "first layer" of widgets, it is not getting any of the widgets that are nested in the "first layer".

for example (sudo code):
<div id="document">
  <dojo widget id="titlePane_0" >
      <dojo dialog id="popup_0">
         <dojo dialog id="subpopup_0">
      <dojo tabcontainer id="tabcont_0">
   <dojo widget id="titlePane_1" >
      <dojo dialog id="popup_1">
         <dojo dialog id="subpopup_1">
   <dojo widget id="titlePane_2" >
      <dojo tabcontainer id="tabcont_2">
         <dojo dialog id="popup_2">
   

I thought that var nodeList = dojo.query('> [widgetId]', 'document'); would get everything under document including the nested widgets.  but I'm only getting titlePane_0 and titlePane_1.

I would like to get titlePane_0, popup_0, subpopup_0, tabcont_0, titlePane_1, popup_1, subpopup_1, titlePane_2, tabcont_2, popup_2 in one call.  Can that be done.