Manage Learn to apply best practices and optimize your operations.

Html/Javascript Exploder

Create a new bookmark in Netscape ( doesn't work in IE ) and paste the code
below into the Location (URL) field. Make sure to put it all on one line with
no carriage returns. Title the bookmark with "window.Explode ( )".

When browsing an html page, use this to open a new window displaying all of the
objects, functions, variables, etc. contained on the viewed page with links to
walk down into the class structures. I use this to scan for accidental
globals, locate items that seem to be "lost", verify items arrived in their
appropriate location. Also good for looking at other peoples pages, although
that can be disappointing... :)

Warning: this code is not fine tuned, and is highly condensed to fit in a
bookmark. In some instances it doesn't work. Use at own risk. Also, if page
already has an "s", it may be overwritten because the bookmark appends the code
to the viewed page.
javascript:function s(o, n){var v=s.arguments;var l=v.length;function p(v){var
iS=v.toString();for(var i=0;i<iS.length;i++){var
c=iS.charAt(i);if(c<"0"||c>"9")return false}return
true}if(l==0){o=this;n=""}var
w=window.open("","V","toolbar,location,menubar,scrollbars,resizable");w.moveTo(0
,0);w.focus();var d=w.document;var os;var r="<table>";for (var i in
o){os=p(i)?n+"["+i+"]":(n==""?"":n+".")+i;r+="<tr><td>"+typeof
o[i]+"</td><td><b>"+os+"</b></td>";r+="<td><A
href=\"javascript:alert(window.opener."+os+")\">View</A></td>";r+="<td><A
href=\"javascript:window.opener.s(window.opener."+os+",'"+os+"')\">Properties</A
></td>";if(typeof o[i]!="function"&&typeof
o[i]!="object")r+="<td>"+(o[i]==null?"<b>null</b>":o[i]==""?"\"\"":o[i])+"</td>"
;else
r+="<td> </td>";r+="</tr>\n"}r+="</table>";d.write("<html><head><title>Varia
bles</title></head><body><form
name=\"varlist\">"+r+"</form></body></html>");d.close()}s()
This was last published in November 2000

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close