]> git.rkrishnan.org Git - .emacs.d.git/blob - emacs/nxhtml/tests/in/hg-2008-03-22-ajax.xhtml
submodulized .emacs.d setup
[.emacs.d.git] / emacs / nxhtml / tests / in / hg-2008-03-22-ajax.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4   <head>
5     <meta name="generator" content=
6           "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
7     <title></title>
8   </head>
9   <body>
10     <script language="JavaScript" type="text/javascript">
11       //<![CDATA[
12 function test() {
13     var xmlhttp = new XMLHttpRequest();
14     xmlhttp.onreadystatechange=function() {
15         if (xmlhttp.readystate==4) {
16             if (xmlhttp.status==200) {
17                 alert(xmlhttp.responseText);
18             }else {
19                 alert(xmlhttp.status);
20             }
21             #ffff00;
22         }
23         xmlhttp.open("post","/hello/cardCpu/queryList");
24         var body = "label="+encodeURIComponent("±£ÍÍ");
25         alert(body)
26         xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
27         xmlhttp.send(body);
28     }
29 }
30 //]]>
31     </script>
32     <hr />
33     <address><a href="mailto:agile@agile">agile.guo</a></address>
34     <!-- Created: Thu Sep 14 22:01:37 CST 2006 -->
35     <!-- hhmts start -->
36     Last modified: Thu Sep 14 22:01:42 CST 2006 <!-- hhmts end -->
37   </body>
38 </html>