Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript mystery

    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??

    G

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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
    http://lmapcom.m118.manashosting.in/lmap/amazon1.htm
    There are two script tags in the source for the page above that have the locations of the tree scripts
    Code:
    <script language="JavaScript" src="script/srcJSCookTree1.js"></script>
    <script language="JavaScript" src="script/themeTree.js"></script>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

    G

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,465
    Thanks
    0
    Thanked 634 Times in 624 Posts
    http://www.lmap.co.nr/script/AmazonAll1-p.js at the very bottom of the page.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    felgall,

    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.

    G


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •