Question on JavaScript



My company is switching from using a vendor DNS server to our own as
well as creating a new network. We want to verify whether or not our
customers can "reach" our new network so we have placed some
JavaScript on the logon page of one of our applications to check for
the existence of an image on the new network. We have had over 20,000
successes and about 300 failures. I want to know if the failures
could be do to the following scripting code or if we should continue
to look at the DNS, ACL's, etc. I want to rule out the script. The
failures are falling into the isBad funciton and we are logging.

function testImage(URL)
var tester=new Image();
tester.onload=isGood;
tester.onerror=isBad;
tester.src=URL;
}


function isGood() {
if( debug ) {
alert('Image exists!');
//Log success (around 20,000)
}
}

function isBad() {
if( debug ) {
alert('Image does no exist!');
//Log failure (around 300)
}
}
.



Relevant Pages

  • Re: WZC wizard fails to start - Windows CE 5
    ... Interesting that despite some failures, like unable to open icon in systray and foad failed for aygshell.dll it worked for you. ... \ Network User Interface ... NOT using OPTIMIZED RX handler ... maybe even as wireless network device, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: WZC wizard fails to start - Windows CE 5
    ... The catalog elements from the Platform Builder 5.0 IDE that you need ... \ Network User Interface ... maybe even as wireless network device, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Outlook Error MSG
    ... message on the Exchange transport. ... failures on the network can be common, and that would explain the behavior. ... or possibly out-of-resource problem on the client ...
    (microsoft.public.outlook.general)
  • Re: Mysterious login failures
    ... they do not have any account with permissions to resources on your machine. ... who can access your computer from the network in Local Security Policy. ... I've been seeing a pattern of random failures. ... > Right now my guess is that these computers have some odd service ...
    (microsoft.public.win2000.security)
  • Re: No Pilots, No Shows
    ... as a television network. ... Then please stop describing unsold pilots as "failures" in this ... There would be a far worse success rate. ...
    (rec.arts.tv)