View Full Version : Javascript mystery

04-30-2006, 09:50 PM
At the url below there is a very nice set of scripts that provides a directory tree of a large quantity of server side data, using ajax to load dynamically:http://www.lmap.co.nr/amazon1.htm Looking through the html and the scripts that are loaded , I cannot locate the onclick function that is called when the top tree item clicked -- the function ab1: onClick="javascript:ab1();". Where is this function hidden??


04-30-2006, 10:09 PM
Not really a mystery. Just realizing that they are using a domain mask meaning another domain with a frameset in which as the actual page
There are two script tags in the source for the page above that have the locations of the tree scripts

<script language="JavaScript" src="script/srcJSCookTree1.js"></script>
<script language="JavaScript" src="script/themeTree.js"></script>

04-30-2006, 10:44 PM
Thanks for your response. I understand there is a frameset involved, and I am looking at amazon1.htm within that frameset, and the two tree scripts that you mention are loaded in that page (along with others), but I could not spot in either of them the function 'ab1'. Do you see it?


04-30-2006, 11:16 PM
http://www.lmap.co.nr/script/AmazonAll1-p.js at the very bottom of the page.

05-01-2006, 12:31 AM

Ah, thnx, i missed that. How the thing works may remain a mystery, though, as it appears that script is encrypted -- or at least scrambled.