1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
2 |
lang="ja" xml:lang="ja"> |
3 |
<head profile="http://suika.fam.cx/~wakaba/-temp/wiki/wiki?WikiHTMLMetaProfile"> |
4 |
<title>$B@>1;(B URN $B2r7h4o(B (Ajax $BHG(B)</title> |
5 |
<link rev="made" href="mailto:sana@suika.fam.cx" /> |
6 |
<meta name="author" content="$B@>1;7W2h4IM}ItEPO?L>78(B" /> |
7 |
<link rel="copyright" href="/c/pd" /> |
8 |
<link rel="stylesheet" href="/admin/style/common" media="all" /> |
9 |
<link rel="stylesheet" href="/www/style/ui/toc-after-abstract" media="all" /> |
10 |
<link rel="up" href="../N2L" title="URN $B"*(B URL $B2r7h4o(B" /> |
11 |
|
12 |
<script type="application/x-javascript" |
13 |
src="/www/2005/uri-resolver/SimpleURIResolver.js"></script> |
14 |
<script type="application/x-javascript"> |
15 |
var NS_XHTML1 = 'http://www.w3.org/1999/xhtml'; |
16 |
document.suikaURNResolver = new SimpleURIResolver (); |
17 |
document.suikaURNResolver.addMappingTableURI |
18 |
('urn:x-suika-fam-cx:', |
19 |
'http://suika.fam.cx/admin/assign/urn-x-suika-fam-cx.map'); |
20 |
|
21 |
window.addEventListener ('load', function () { |
22 |
document.getElementById ('AJAX-ORIGINAL-URI').onchange = function () { |
23 |
var origURI = this.value; |
24 |
var r2 = document.suikaURNResolver.resolve (origURI, true); |
25 |
var r1 = document.suikaURNResolver.resolve (origURI, false); |
26 |
if (r1) { |
27 |
var con = document.getElementById ('AJAX-RESULT-PRIMARY'); |
28 |
con.textContent = ''; |
29 |
con.innerText = ''; |
30 |
var code = con.appendChild (document.createElementNS |
31 |
(NS_XHTML1, 'code')); |
32 |
code.className = 'URI'; |
33 |
code.appendChild (document.createTextNode |
34 |
(decodeURIComponent ('%3C'))); |
35 |
var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a')); |
36 |
a.href = r1; |
37 |
a.textContent = r1; |
38 |
a.innerText = r1; |
39 |
code.appendChild (document.createTextNode ('>')); |
40 |
} else { |
41 |
var con = document.getElementById ('AJAX-RESULT-PRIMARY'); |
42 |
con.textContent = '($B$J$7(B)'; |
43 |
con.innerText = '($B$J$7(B)'; |
44 |
} |
45 |
if (r2) { |
46 |
var con = document.getElementById ('AJAX-RESULT-SECONDARY'); |
47 |
con.textContent = ''; |
48 |
con.innerText = ''; |
49 |
var code = con.appendChild (document.createElementNS |
50 |
(NS_XHTML1, 'code')); |
51 |
code.className = 'URI'; |
52 |
code.appendChild (document.createTextNode |
53 |
(decodeURIComponent ('%3C'))); |
54 |
var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a')); |
55 |
a.href = r2; |
56 |
a.textContent = r2; |
57 |
a.innerText = r2; |
58 |
code.appendChild (document.createTextNode ('>')); |
59 |
} else { |
60 |
var con = document.getElementById ('AJAX-RESULT-SECONDARY'); |
61 |
con.textContent = '($B$J$7(B)'; |
62 |
con.innerText = '($B$J$7(B)'; |
63 |
} |
64 |
var au = document.getElementById ('AJAX-RESULT-AJAX-URI'); |
65 |
au.textContent = 'http://suika.fam.cx/uri-res/2005/ajax?' |
66 |
+ encodeURIComponent (origURI); |
67 |
au.innerText = au.textContent; |
68 |
au.href = au.textContent; |
69 |
var uu = document.getElementById ('AJAX-RESULT-N2L-URI'); |
70 |
uu.textContent = 'http://suika.fam.cx/uri-res/N2L?' |
71 |
+ encodeURIComponent (origURI); |
72 |
uu.innerText = uu.textContent; |
73 |
uu.href = uu.textContent; |
74 |
}; |
75 |
}, false); |
76 |
|
77 |
var qp = location.href.indexOf ('?'); |
78 |
var query = qp != -1 ? location.href.substr (qp + 1) : ''; |
79 |
var origURI; |
80 |
if (query.substr (0, 3) == 'uri=') { |
81 |
origURI = decodeURIComponent (query.substr (3)); |
82 |
} else if (query) { |
83 |
origURI = decodeURIComponent (query); |
84 |
} |
85 |
if (origURI) { |
86 |
var resURI = document.suikaURNResolver.resolve (origURI, true); |
87 |
if (resURI) { |
88 |
location.href = resURI; |
89 |
} else { |
90 |
window.addEventListener ('load', function () { |
91 |
var origuv = document.getElementById ('AJAX-ORIGINAL-URI'); |
92 |
origuv.value = origURI; |
93 |
origuv.onchange (); |
94 |
}, false); |
95 |
} |
96 |
} |
97 |
|
98 |
</script> |
99 |
</head> |
100 |
<body> |
101 |
<h1>$B@>1;(B <abbr lang="en" xml:lang="en">URN</abbr> $B2r7h4o(B (<abbr |
102 |
lang="en" xml:lang="en">Ajax</abbr> $BHG(B)</h1> |
103 |
|
104 |
<p>$B<B83E*$K(B <abbr lang="en" xml:lang="en">Ajax</abbr> |
105 |
$B$r;H$C$?(B <a |
106 |
href="/admin/assign/urn"><code class="URI"><urn:x-suika-fam-cx:></code> |
107 |
$B2<$N(B <abbr lang="en" xml:lang="en">URI</abbr></a> |
108 |
$B$+$i(B <abbr lang="en" xml:lang="en">HTTP</abbr> |
109 |
$B$r;H$C$F<h=P$72DG=$J(B <abbr lang="en" xml:lang="en">URI</abbr> |
110 |
$B$X$N2r7h%5!<%S%9$r9T$C$F$$$^$9!#(B</p> |
111 |
|
112 |
<dl> |
113 |
<dt>$B85$N(B <abbr lang="en" xml:lang="en">URI</abbr> $B;2>H(B</dt> |
114 |
<dd><input type="url" value="urn:x-suika-fam-cx:" |
115 |
id="AJAX-ORIGINAL-URI" |
116 |
size="60" /><button onclick=" |
117 |
document.getElementById ('AJAX-ORIGINAL-URI').onchange (); |
118 |
">$B2r7h(B</button></dd> |
119 |
<dt>$B0l<!2r7h(B <abbr lang="en" xml:lang="en">URI</abbr> $B;2>H(B</dt> |
120 |
<dd id="AJAX-RESULT-PRIMARY">($B$J$7(B)</dd> |
121 |
<dt>$BFs<!2r7h(B <abbr lang="en" xml:lang="en">URI</abbr> $B;2>H(B</dt> |
122 |
<dd id="AJAX-RESULT-SECONDARY">($B$J$7(B)</dd> |
123 |
<dt>$B2r7h4o(B (<abbr lang="en" xml:lang="en">Ajax</abbr> $BHG(B) |
124 |
<abbr lang="en" xml:lang="en">URI</abbr></dt> |
125 |
<dd><code class="URI"><<a id="AJAX-RESULT-AJAX-URI" |
126 |
href="http://suika.fam.cx/uri-res/2005/ajax" |
127 |
>http://suika.fam.cx/uri-res/2005/ajax</a>></code></dd> |
128 |
<dt>$B2r7h4o(B (<span lang="en" xml:lang="en"><abbr>RFC</abbr> 2169</span>) |
129 |
<abbr lang="en" xml:lang="en">URI</abbr></dt> |
130 |
<dd><code class="URI"><<a id="AJAX-RESULT-N2L-URI" |
131 |
href="http://suika.fam.cx/uri-res/N2L" |
132 |
>http://suika.fam.cx/uri-res/N2L</a>></code></dd> |
133 |
</dl> |
134 |
|
135 |
<div class="note memo"> |
136 |
<p><a href="http://suika.fam.cx/gate/2005/sw/%E8%A5%BF%E7%93%9CURN%E8%A7%A3%E6%B1%BA%E5%99%A8/Ajax%E7%89%88" |
137 |
title="SuikaWiki : $B@>1;(B URN $B2r7h4o(B // Ajax $BHG(B" |
138 |
>$B$3$N2r7h4o$K4X$9$k%a%b(B</a>$B$,$"$j$^$9!#(B |
139 |
$B$*Ld9g$;Ey$b$=$A$i$X$I$&$>!#(B</p> |
140 |
</div> |
141 |
|
142 |
<div class="footer"> |
143 |
<div class="navigation"> |
144 |
[<a href="/">/</a> <a href="/search/" rel="search">$B8!:w(B</a>] |
145 |
[<a lang="en" xml:lang="en" href="/uri-res/" rel="up"><abbr |
146 |
title="Uniform Resource Identifiers">URI</abbr></a>] |
147 |
</div> |
148 |
<div class="update" lang="en" xml:lang="en">$Date: 2005/06/15 01:06:59 $</div> |
149 |
</div> |
150 |
</body> |
151 |
</html> |