title: Checking length of dictionary object
body: <p>I'm trying to check the length here.  Tried count.  Is there something I'm missing?</p>
  
  <pre><code>var dNames = {}; 
  dNames = GetAllNames();
  
  for (var i = 0, l = dName.length; i &lt; l; i++) 
  {
          alert("Name: " + dName[i].name);
  }
  </code></pre>
  
  <p>dNames holds name/value pairs.  I know that dNames has values in that object but it's still completely skipping over that and when I alert out even dName.length obviously that's not how to do this...so not sure.  Looked it up on the web.  Could not find anything on this.</p>