1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
<!--#set var="revision" value="\$Id: favelets.html,v 1.4 2003-04-11 08:59:21 ville Exp $"
--><!--#set var="date" value="\$Date: 2003-04-11 08:59:21 $"
--><!--#set var="title" value="Favelets For The W3C Markup Validation Service"
--><!--#set var="relroot" value="./"
--><!--#include virtual="header.html" -->
<script type="text/javascript">
<!--
var xmlhttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
} catch (e) {
try {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
} catch (E) {
xmlhttp=false
}
}
@else
xmlhttp=false
@end @*/
if (!xmlhttp) {
try {
xmlhttp = new XMLHttpRequest()
} catch (e) {
xmlhttp=false
}
}
if (xmlhttp && window.location.hash && window.location.hash.substr) {
var hsh=window.location.hash.substr(1)
if (hsh.indexOf('http://')==0) {
url="http://validator.w3.org/check?uri="+escape(hsh)+";output=xml";
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("")
}
}
// -->
</script>
<div id="skip">
<h2><a href="http://favelets.com/">Favelets</a>
For The Validator</h2>
<div class="intro">
<p>
<a href="http://favelets.com/">Favelets</a> are small snippets of
JavaScript embedded in a Bookmark
<acronym title="Universal Resource Identifier">URL</acronym>
that allow Bookmarks in browsers to do various advanced things.
Popular <a href="http://favelets.com/">Favelets</a> include variants
that prompt the user for a phrase and search the web for that
phrase, or that finds older versions of the currently viewed page in
the <a class="offsite" title="The Internet Archive WayBack Machine"
href="http://www.archive.org/">WayBack Machine</a>.
More Favelets can be found from
<URI:<a href="http://favelets.com/">http://favelets.com/</a>>.
</p>
<p>
<a href="http://favelets.com/">Favelets</a> depend on support for
<code>javascript:</code>
<acronym title="Universal Resource Identifiers">URLs</acronym>
in your browser's Bookmarks feature, and each
<a href="http://favelets.com/">Favelet</a> may depend on
support for a specific part of the JavaScript specification to work
properly. <acronym title="Microsoft Internet Explorer">MSIE</acronym>
versions 5.0 and later, and Mozilla 1.0 and later — including
browsers using the embedded version of Mozilla, such as
Netscape 7.0 — are known to support most
<a href="http://favelets.com/">Favelets</a>.
</p>
<p>
Most browsers that have support for basic JavaScript and
<acronym title="Document Object Model">DOM</acronym> also support
basic <a href="http://favelets.com/">Favelets</a>, but more advanced
<a href="http://favelets.com/">Favelets</a> may require more complete
<acronym title="Document Object Model: Level 1">DOM1</acronym> and
<acronym title="Document Object Model: Level 2">DOM2</acronym>
support. Netscape 4.x is a lost cause in this regard, and with its
poor support for standards in general it is probably better to avoid
it altogether.
</p>
</div>
<div>
<dl>
<dt>"<a href="javascript:void(window.location='http://validator.w3.org/check?uri='+escape(window.location))"
title="Validate This Page">Validate <em>This</em> Page</a>"</dt>
<dd>
This is the basic "Validate This Page" <a href="http://favelets.com/">Favelet</a>.
It simply submits the URL for the currently viewed page to the
Validator for processing. Results appear in the same window.
</dd>
<dt>"<a href="javascript:window.open('http://validator.w3.org/check?uri='+escape(window.location));void%200"
title="Validate This Page In New Window">Validate <em>This</em> Page In New Window</a>"</dt>
<dd>
Like the last <a href="http://favelets.com/">Favelet</a>, this also
submits the URL of the current page to the Validator for processing,
but this version will show the results in a new window.
</dd>
<dt>"<a href="javascript:void(q=prompt('Validate Page:',''));if(q)void(window.location='http://validator.w3.org/check?uri='+escape(q))"
title="Validate Page...">Validate Page...</a>"</dt>
<dd>
Puts up a dialog with a text entry field where you can type in the
URL of a page you would like to Validate. The results appear in the
current window.
</dd>
<dt>"<a href="javascript:void(q=prompt('Validate Page:',''));if(q)window.open('http://validator.w3.org/check?uri='+escape(q));void%200"
title="Validate Page In New Window...">Validate Page In New Window...</a>"</dt>
<dd>Same as above but shows results in a new window.</dd>
<dt>"<a href="javascript:_is=document.createElement('iframe');_is.setAttribute('src','http://validator.w3.org/favelets.html#'+window.location.href);_is.setAttribute('height','0');_is.setAttribute('width','0');_is.setAttribute('style','border:0;');document.body.appendChild(_is);void 0"
title="Is This Page Valid?">Is <em>This</em> Page Valid?</a>"</dt>
<dd>
From the Head Of The "JavaScript Juju" Department,
<a href="http://jibbering.com/">Jim Ley</a>, comes this gem.
When invoked, this <a href="http://favelets.com/">Favelet</a> will
submit the
<acronym title="Universal Resource Identifier">URL</acronym>
for the current page to the Validator for processing and pop up
a dialog that shows whether the page is Valid and how many errors
where found in the page. As with all Jim does, this Black Magic is
so deep I'm <em>afraid</em> to ask him how it works.
<q>Here There Be Dragons!</q>
</dd>
</dl>
</div>
</div>
<!--#include virtual="footer.html" -->
</body>
</html>
|