/[suikacvs]/webroot/uri-res/2005/ajax.ja.html
Suika

Contents of /webroot/uri-res/2005/ajax.ja.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Tue Jun 14 11:58:29 2005 UTC (19 years, 5 months ago) by wakaba
Branch: MAIN
Changes since 1.1: +8 -6 lines
File MIME type: text/html
Now XML well-formed

1 wakaba 1.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     const 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     var code = con.appendChild (document.createElementNS
30     (NS_XHTML1, 'code'));
31     code.className = 'URI';
32 wakaba 1.2 code.appendChild (document.createTextNode
33     (decodeURIComponent ('%3C')));
34 wakaba 1.1 var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a'));
35     a.href = r1;
36     a.textContent = r1;
37     code.appendChild (document.createTextNode ('>'));
38     } else {
39     var con = document.getElementById ('AJAX-RESULT-PRIMARY');
40     con.textContent = '($B$J$7(B)';
41     }
42     if (r2) {
43     var con = document.getElementById ('AJAX-RESULT-SECONDARY');
44     con.textContent = '';
45     var code = con.appendChild (document.createElementNS
46     (NS_XHTML1, 'code'));
47     code.className = 'URI';
48 wakaba 1.2 code.appendChild (document.createTextNode
49     (decodeURIComponent ('%3C')));
50 wakaba 1.1 var a = code.appendChild (document.createElementNS (NS_XHTML1, 'a'));
51     a.href = r2;
52     a.textContent = r2;
53     code.appendChild (document.createTextNode ('>'));
54     } else {
55     var con = document.getElementById ('AJAX-RESULT-SECONDARY');
56     con.textContent = '($B$J$7(B)';
57     }
58     var au = document.getElementById ('AJAX-RESULT-AJAX-URI');
59     au.textContent = 'http://suika.fam.cx/uri-res/2005/ajax?'
60     + encodeURIComponent (origURI);
61     au.href = au.textContent;
62     var uu = document.getElementById ('AJAX-RESULT-N2L-URI');
63     uu.textContent = 'http://suika.fam.cx/uri-res/N2L?'
64     + encodeURIComponent (origURI);
65     uu.href = uu.textContent;
66     };
67     }, false);
68    
69     var qp = location.href.indexOf ('?');
70     var query = qp != -1 ? location.href.substr (qp + 1) : '';
71     var origURI;
72     if (query.substr (0, 3) == 'uri=') {
73     origURI = decodeURIComponent (query.substr (3));
74     } else if (query) {
75     origURI = decodeURIComponent (query);
76     }
77     if (origURI) {
78     var resURI = document.suikaURNResolver.resolve (origURI, true);
79     if (resURI) {
80     location.href = resURI;
81     } else {
82     window.addEventListener ('load', function () {
83     var origuv = document.getElementById ('AJAX-ORIGINAL-URI');
84     origuv.value = origURI;
85     origuv.onchange ();
86     }, false);
87     }
88     }
89    
90     </script>
91     </head>
92     <body>
93     <h1>$B@>1;(B <abbr lang="en" xml:lang="en">URN</abbr> $B2r7h4o(B (<abbr
94     lang="en" xml:lang="en">Ajax</abbr> $BHG(B)</h1>
95    
96     <p>$B<B83E*$K(B <abbr lang="en" xml:lang="en">Ajax</abbr>
97     $B$r;H$C$?(B <a
98     href="/admin/assign/urn"><code class="URI">&lt;urn:x-suika-fam-cx:&gt;</code>
99     $B2<$N(B <abbr lang="en" xml:lang="en">URI</abbr></a>
100     $B$+$i(B <abbr lang="en" xml:lang="en">HTTP</abbr>
101     $B$r;H$C$F<h=P$72DG=$J(B <abbr lang="en" xml:lang="en">URI</abbr>
102     $B$X$N2r7h%5!<%S%9$r9T$C$F$$$^$9!#(B</p>
103    
104     <dl>
105     <dt>$B85$N(B <abbr lang="en" xml:lang="en">URI</abbr> $B;2>H(B</dt>
106     <dd><input type="url" value="urn:x-suika-fam-cx:"
107     id="AJAX-ORIGINAL-URI"
108 wakaba 1.2 size="60" /><button onclick="
109 wakaba 1.1 document.getElementById ('AJAX-ORIGINAL-URI').onchange ();
110     ">$B2r7h(B</button></dd>
111     <dt>$B0l<!2r7h(B <abbr lang="en" xml:lang="en">URI</abbr> $B;2>H(B</dt>
112     <dd id="AJAX-RESULT-PRIMARY">($B$J$7(B)</dd>
113     <dt>$BFs<!2r7h(B <abbr lang="en" xml:lang="en">URI</abbr> $B;2>H(B</dt>
114     <dd id="AJAX-RESULT-SECONDARY">($B$J$7(B)</dd>
115     <dt>$B2r7h4o(B (<abbr lang="en" xml:lang="en">Ajax</abbr> $BHG(B)
116     <abbr lang="en" xml:lang="en">URI</abbr></dt>
117     <dd><code class="URI">&lt;<a id="AJAX-RESULT-AJAX-URI"
118     href="http://suika.fam.cx/uri-res/2005/ajax"
119     >http://suika.fam.cx/uri-res/2005/ajax</a>&gt;</code></dd>
120     <dt>$B2r7h4o(B (<span lang="en" xml:lang="en"><abbr>RFC</abbr> 2169</span>)
121     <abbr lang="en" xml:lang="en">URI</abbr></dt>
122     <dd><code class="URI">&lt;<a id="AJAX-RESULT-N2L-URI"
123     href="http://suika.fam.cx/uri-res/N2L"
124     >http://suika.fam.cx/uri-res/N2L</a>&gt;</code></dd>
125     </dl>
126    
127     <div class="footer">
128     <div class="navigation">
129     [<a href="/">/</a> <a href="/search/" rel="search">$B8!:w(B</a>]
130 wakaba 1.2 [<a lang="en" xml:lang="en" href="/uri-res/" rel="up"><abbr
131     title="Uniform Resource Identifiers">URI</abbr></a>]
132 wakaba 1.1 </div>
133 wakaba 1.2 <div class="update" lang="en" xml:lang="en">$Date: 2005/06/14 11:45:58 $</div>
134 wakaba 1.1 </div>
135     </body>
136     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24