summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authorlink <link@localhost>2002-10-29 22:32:08 +0000
committerlink <link@localhost>2002-10-29 22:32:08 +0000
commita3e2efc70a23326383ee517db60f6a696687dbb1 (patch)
treebe7f98c053958de3d0b4470f9ad208c77b2467fc /htdocs
parentc99d383ba2452a9f24f44903bc194252dcb1e805 (diff)
downloadmarkup-validator-a3e2efc70a23326383ee517db60f6a696687dbb1.zip
markup-validator-a3e2efc70a23326383ee517db60f6a696687dbb1.tar.gz
markup-validator-a3e2efc70a23326383ee517db60f6a696687dbb1.tar.bz2
Update "Is This Page Valid?" Favlet with new code from Jim Ley and add link
to favlets.html from header.html. Thanks (again) to Jim for the code!
Diffstat (limited to 'htdocs')
-rwxr-xr-xhtdocs/favlets.html10
-rwxr-xr-xhtdocs/header.html3
2 files changed, 9 insertions, 4 deletions
diff --git a/htdocs/favlets.html b/htdocs/favlets.html
index 29d4618..6f738bc 100755
--- a/htdocs/favlets.html
+++ b/htdocs/favlets.html
@@ -1,5 +1,5 @@
-<!--#set var="revision" value="\$Id: favlets.html,v 1.4 2002-10-23 23:11:29 link Exp $"
---><!--#set var="date" value="\$Date: 2002-10-23 23:11:29 $"
+<!--#set var="revision" value="\$Id: favlets.html,v 1.5 2002-10-29 22:32:07 link Exp $"
+--><!--#set var="date" value="\$Date: 2002-10-29 22:32:07 $"
--><!--#set var="title" value="Favlets For The W3C MarkUp Validation Service"
--><!--#set var="relroot" value="./"
--><!--#include virtual="header.html" -->
@@ -35,9 +35,13 @@
xmlhttp.open("HEAD",url,true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
+ if (xmlhttp.getResponseHeader('X-W3C-Validator-Status')!='') {
alert(hsh+' is '+xmlhttp.getResponseHeader('X-W3C-Validator-Status')+'\nErrors: '+xmlhttp.getResponseHeader('X-W3C-Validator-Errors'));
+ } else {
+ alert("Validation result not found, this may be for a number of reasons, including url not being available, or a character coding not detected.")
+ }
}
- }
+ }
xmlhttp.setRequestHeader('User-Agent','Validator+Favlet');
xmlhttp.send("")
}
diff --git a/htdocs/header.html b/htdocs/header.html
index 9aa1e3c..b696dc1 100755
--- a/htdocs/header.html
+++ b/htdocs/header.html
@@ -12,7 +12,7 @@
<meta name="description" content="W3C's easy-to-use
HTML validation service, based on an SGML parser." />
<meta name="revision" content="<!--#echo var="revision" -->" />
- <!-- SSI Template Version: $Id: header.html,v 1.18 2002-10-27 15:36:19 ville Exp $ -->
+ <!-- SSI Template Version: $Id: header.html,v 1.19 2002-10-29 22:32:08 link Exp $ -->
</head>
<body>
@@ -30,6 +30,7 @@
<a href="<!--#echo var="relroot" -->accesskeys.html" accesskey="k" title="Accesskey Legend for the Validator Service">Accesskeys</a> <span class="hideme">|</span>
<a href="<!--#echo var="relroot" -->feedback.html" title="How to provide feedback on this service">Feedback</a> <span class="hideme">|</span>
<a href="<!--#echo var="relroot" -->about.html" title="Information About this Service">About...</a> <span class="hideme">|</span>
+ <a href="<!--#echo var="relroot" -->favlets.html" title="Favlets for the Validator">Favlets</a> <span class="hideme">|</span>
</p>
<p class="none">
<a href="http://valet.webthing.com/" class="offsite" title="The Site Valet QA Tools">Site Valet</a> <span class="hideme">|</span>