<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 5.0::19981217::extensions to HTML 4.0//EN" "hmpro5.dtd">
 
<HTML>
 
<HEAD>
<TITLE></TITLE>
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="xmldom.js"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="xmldb.js"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="xmldisp.js"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="xmlshow.js"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="xmlerrdisp.js"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var isNav4, isIE4;
if (parseInt(navigator.appVersion) >= 4) {
  isNav4 = (navigator.appName == 'Netscape')
  isIE4 = (navigator.appName.indexOf("Microsoft") != -1)
}
</SCRIPT>


<STYLE TYPE="text/css" >
<!--
  .available {color: darkgreen }
  .notavailable {color: darkred }
-->
</STYLE>

<H2>InternetExpress Include Files Troubleshooter</H2>
<P>When a JavaScript error occurs while using an InternetExpress application,
the error is often the result of unavailable JavaScript include files. Use this
html file to verify that the JavaScript files are available.</P>
<P>This page looks for JavaScript files in the current directory. To modify
this html page to reference a different virtual directory (e.g., SCRIPTS),
modify the SRC attribute in the &lt;SCRIPT&gt; tag (e.g.,
SRC=&quot;/SCRIPTS/xmldom.js&quot;).</P>
<P>You must access this page through your Web Server. Accessing this page as a
local file (e.g.; c:\inetpub\wwwroot\scripttest.html) may provide incorrect
results.</P>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
//alert('isIE4 ' + isIE4);
//alert('isNav4 ' + isNav4);
var notFound = false;
function getIncludeStatus(file,found) {
  var output = "<tr><th>" + file + "</th><td>"
  if (found) {
    output += "<span class=available>Available</span>"
  }
  else {
    output += "<span class=notavailable>Not available</span>";
  }
  output += "</td></tr>"
  if (!found) notFound = true;
  return output;
}

  
var output = ""
output += "<h3>JavaScript include file status</h3>"
output += "<table cellpadding=3 border=1>"
output += getIncludeStatus("xmldisp.js", self.xmldisp_vers != null);
output += getIncludeStatus("xmldom.js", self.xmldom_vers != null);
output += getIncludeStatus("xmldb.js", self.xmldb_vers != null);
output += getIncludeStatus("xmlerrdisp.js", self.xmlerrdisp_vers != null);
output += getIncludeStatus("xmlshow.js", self.xmlshow_vers != null);
output += "</table>"
if (notFound) {
  output += 
	 "<p>One or more JavaScript files are not available.</p>" +
		"<table cellpadding=3 border=1>" +
		"<tr><th>Possible cause</th><th>Remedy</th>" +
		"<tr><td>" +
		"JavaScript files were not found in the virtual directory " +
		"of your Web Server." +
		"</td><td>" +
		"Copy *.js from source\\webmidas to the virtual directory." +
		"</td></tr>" +
		"<tr><td>" +
		"The Web Server does not allow JavaScript files to be read from " +
		"the virtual directory." +
		"</td><td>" +
		"Modify the properties of the virtual directory to include read " +
		"access permission." +
		"</td></tr>" +
		"<tr><td>" +
		"This troubleshooting page is not accessing the correct virtual directory." +
		"</td><td>" +
		"This page looks for JavaScript files in the current directory. " +
		"To modify this html page to reference a different virtual directory " +
		"(e.g., SCRIPTS), change the SRC attribute in the &lt;SCRIPT&gt; tag (e.g., " +
		'SRC="/SCRIPTS/xmldom.js").' +
		"</td></tr>" +
		"</table>"
}
else {
  output += 
	   "<p>All JavaScript include files are available.</p>" +
		"<p>If your InternetExpress application continues to fail on JavaScript " +
		"errors, verify that the MidasPageProducer components are looking for the " +
		"JavaScript files in the correct location.  From your browser, view the HTML source " +
		"of the InternetExpress application page and examining the &lt;SCRIPT&gt; tags " +
		"that reference xmldb.js, etc.  If the paths do not correspond to the " +
		"virtual directory where you have copied *.js then modify the " +
		"TMidasPageProducer.IncludePathURL property, rebuild and retest you application.</p>" 
}
if (isNav4) {
  output = "<LAYER>" + output + "</LAYER>"
}

document.write(output)
</SCRIPT>
</BODY>

</HTML>

