Results 1 to 6 of 6
  1. #1
    I like traffic lights
    Join Date
    January 18th, 2005
    Location
    Southern hemisphere - away from Fukushima
    Posts
    2,936
    OK. I posted this in another thread a few days ago, but didn't get any reaction. Can a javascript guru take a look at this and see if (s)he can get this baby purring???

    *******

    In the header, I've put:

    function nocj() {
    document.images.nocjroute = new Image();
    document.images.nocjroute.src ="http://example.com/images/nocj.gif";
    }
    // End -->
    </script>

    In one of the qksrv.net img tags on the page, I've added:

    onError="nocj()"

    So theoretically, if their browser can't contact qksrv.net, the javascript error routine is called, and the browser attempts to load the 'nocj.gif" image from my webserver, and I get a log entry recording that someone can't reach qksrv.net


    I've tested it, and the error code, is called, but I can't get the image request to appear in my log file.

    It's probably a simple error. Any suggestions?

    If we can get this to work, we can get some fairly reliable stats about just how many surfers out there have a poisoned hosts file that is blocking affiliate networks.

    If you know a javascript guru that can help, please send them to this thread!!!

    Jimmy James fan club membership # 3312

  2. #2
    ABW Ambassador Doc Sawyer's Avatar
    Join Date
    January 18th, 2005
    Location
    Southern California Desert
    Posts
    567
    >It's probably a simple error. Any suggestions?

    Looks like a complete infuctuation to me....

    >In the header, I've put:

    function nocj()
    {
    document.images.nocjroute = new Image();


    !You didn't declare variable Image and you do nothing with it

    document.images.nocjroute.src ="http://example.com/images/nocj.gif";

    !See above...
    }
    // End -->
    </script>

    In one of the qksrv.net img tags on the page, I've added:

    onError="nocj()"

    So theoretically, if their browser can't contact qksrv.net, the javascript error routine is called, and the browser attempts to load the 'nocj.gif" image from my webserver, and I get a log entry recording that someone can't reach qksrv.net


    I've tested it, and the error code, is called, but I can't get the image request to appear in my log file.

    "Half this game is ninety percent mental." -- Phillies Manager, Danny Ozark

  3. #3
    I like traffic lights
    Join Date
    January 18th, 2005
    Location
    Southern hemisphere - away from Fukushima
    Posts
    2,936
    Thanks for that.

    Now, can you posts a corrected version of the script?

    Jimmy James Inc. fan club membership # 3312

  4. #4
    I like traffic lights
    Join Date
    January 18th, 2005
    Location
    Southern hemisphere - away from Fukushima
    Posts
    2,936
    Would it help if I added "name=nocjroute" to the image tag as well as the onerror() bit?

    Jimmy James Inc. fan club membership # 3312

  5. #5
    I like traffic lights
    Join Date
    January 18th, 2005
    Location
    Southern hemisphere - away from Fukushima
    Posts
    2,936
    Well, what do you know?

    I've been testing it in Netscape 7 all this time and could never get it to work.

    Tried it in IE5.2/Mac and it appears to work fine.

    I've set it up on a site, and it's reliably telling me when a surfer using IE cannot load qksrv.net images.

    This should tell us - in general - that they have a poisoned hosts file that is blocking qksrv.net.

    I'll let it run for 24 hours and then we'll see what the results are.

    In the few minutes I've had it running, it's already detected 3 surfers that couldn't access Commission Junction.

    Jimmy James Inc. fan club membership # 3312

  6. #6
    Newbie
    Join Date
    January 18th, 2005
    Posts
    11
    Wow!
    Nice work, Drewbert! This is exactly what I was hoping someone could figure out. Powerful stuff.
    The other suggestion made in that thread earlier, to call an advisory page providing instructions for restoration of an unaltered hosts file would be the next step.
    I know Andrew Clover's parasite advisory page has been invaluable to me.
    Big Thanks to all who have worked on this one!

    It would be great if someone could post the complete script as we have it now. Just for us newbies to javascript.

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: May 17th, 2010, 10:39 AM
  2. Wordpress Guru
    By PetsWarehouse.com in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: May 26th, 2009, 03:52 PM
  3. Any Guru`s Here and right now ? :-)
    By SoloWay in forum Introduce Yourself
    Replies: 11
    Last Post: January 14th, 2008, 11:02 PM
  4. Merchant overwriting cookie? (JS guru needed)
    By Rhea in forum Midnight Cafe'
    Replies: 4
    Last Post: June 13th, 2004, 09:01 PM
  5. Free Ad Guru
    By little creek in forum Other Affiliate Networks
    Replies: 6
    Last Post: February 24th, 2003, 12:09 PM

Posting Permissions

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