Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (58 sloc) 1.222 kb
59ab01f @cho45 jsonp 追加
authored
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>JSDeferred Sample</title>
5 <script type="text/javascript" src="jsdeferred.js"></script>
6 <script type="text/javascript" src="binding/userscript.js"></script>
7 <script type="text/javascript">
8 // <![CDATA[
9
10 window.onload = function () {
11 with (D()) {
12
13 http.jsonp("http://wedata.net/databases/AutoPagerize/items.json").next(function (data) {
14 alert(data);
15 });
16
17 }
18 };
19
20 // ]]>
21 </script>
22
23 <style type="text/css">
24 body {
25 padding: 0 10% 10em;
26 margin: 0;
27 color: #333;
28 line-height: 1.5;
29 }
30
31 h2 {
32 margin: 3em 0 1.5em 0;
33 }
34
35 div.code,
36 pre {
37 font-size: 80%;
38 font-family: monospace;
39 background: #efefef;
40 border: 1px solid #ddd;
41 padding: 1em;
42 line-height: 1.33;
43 overflow: auto;
44 }
45
46 em,
47 span.em {
48 font-weight: bold;
49 font-style: normal;
50 color: #f00;
51 }
52
53 textarea {
54 width: 100%;
55 }
56
57 #footer {
58 margin: 2em 0;
59 text-align: right;
60 font-size: 80%;
61 }
62 </style>
63 </head>
64 <body>
65 <div id="whole">
66 </div>
67 </body>
68 </html>
Something went wrong with that request. Please try again.