Re: Best JavaScript DOM Inspector (Browser)
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Best JavaScript DOM Inspector (Browser)

From: Alex Vassiliev <alex.vassiliev@gmail.com>
Date: Fri Jul 15 2005 - 03:46:51 CEST

I was thinking more about JS object members browser. Something you can
use to inrospect the available properties and methods of given class.
Plust the ability to jump (chenge the focus) on the references, etc.

There are DOM browsers like this one:
http://slayeroffice.com/?c=/content/tools/suite.html
  or
javascript:s=document.body.appendChild(document.createElement('script'));s.id='fs';s.language='javascript';void(s.src='http://slayeroffice.com/tools/suite/suite.js');

which will let you browse the DOM, but not the pure JS object graph.

But thnank for your example anyway... I guess I can modify it like this
to achive my desired results:
   function domWalk(n,x) {
              var members = '';
              for(var m in n) members += m+';';
       rpt.push('<tr><td>' + x
         + '</td><td>' + n.nodeName
         + '</td><td>' + n.nodeType
         + '</td><td>' + members
         + '</tr>');
     for (var i=0; i<n.childNodes.length; i++) {
       domWalk(n.childNodes[i],x+'.'+i);
     }
   }
Received on Tue Oct 18 02:56:10 2005