Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Thanked 76 Times in 76 Posts

    Curiosity - Hide java script

    so I was looking at old post, with smilar Caption.

    Not interested in disablig right click, .... !!!

    During some other efforts I came acros the fact that In certain circumstances U can't see java script source code.

    Here is how.

    1. load java script dynamicaly via AJAX
    2. loaded java script contains objects that have private functions
    3. Havent been able to reveal the source code of these private functions.

    Doe's anyone know how to do that, or which tool to use --just curious.

    off topic - seen a time ago a post on this site about links to free images sites. If anyone could direct me. Thanks

    Last edited by BubikolRamios; 06-05-2007 at 12:58 PM.

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Floating around somewhere...
    Thanked 42 Times in 42 Posts
    since javascript is usually viewed in SC (source code) you should probably read this thread
    as for image hosts, photobucket, imageshack? there a bunch more out there, i believe an active member on this forum has made one too,

  • #3
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Denver, Colorado USA
    Thanked 333 Times in 325 Posts
    Using AJAX won't help. See posts #39, #40, #42, and #44 at this link - http://www.********************/show...t=17499&page=4 Edit: Ha. Apparently links to other popular forums are blocked. Suffice it to say, that someone quickly read and posted some Ajax protected javascript.

    Post #44 demonstrates how to get javascript that is hidden using AJAX.

    Short answer - it is not possible to hide any code that must be rendered in a browser. Don't waste your time on this. No matter what you do to hide code, there is always going to be a programmer smarter than you that can undo it.
    Last edited by CFMaBiSmAd; 06-05-2007 at 02:03 PM.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


    Posting Permissions

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