Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update test

  • Loading branch information...
commit 70b298b164bcdc59dbb776690d48f3e47a068d6d 1 parent e691b8e
@hail2u authored
Showing with 15 additions and 6 deletions.
  1. +15 −6 test.html
View
21 test.html
@@ -2,15 +2,27 @@
<html>
<head>
<meta charset="utf-8">
+
<title>Test page for Query YQL</title>
+
+ <link rel="stylesheet" href="http://hail2u.github.com/natural.css">
+
+ <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ </head>
+ <body>
+ <h1>Test page for Query YQL</h1>
+
+ <div id="content"></div>
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script src="./jquery.query-yql.min.js"></script>
+ <script src="jquery.query-yql.min.js"></script>
<script type="text/javascript">
$(function () {
var t = $("#content").empty();
var statement = "select * from feed where url='http://feeds.feedburner.com/hail2u/blog'";
$.queryYQL(statement, function (data) {
+ $("<h2/>").text("from hail2u.net").appendTo(t);
var r = data.query.results;
var ul = $("<ul/>");
$.each(r.item, function () {
@@ -21,6 +33,7 @@
statement = "select * from html where url='http://b.hatena.ne.jp/h2u/' and xpath='//h3[@class=\"entry-title\"]/a[@class=\"entry-link\"]'";
$.queryYQL(statement, "xml", function (data) {
+ $("<h2/>").text("from b.hatena.ne.jp/h2u/").appendTo(t);
var ul = $("<ul/>");
$.each(data.results, function () {
$("<li/>").append($(this.toString()).text()).appendTo(ul);
@@ -30,6 +43,7 @@
statement = "select * from twitter.user.timeline where screen_name='@hell2u'";
$.queryYQL(statement, "all", function (data) {
+ $("<h2/>").text("from twitter.com/hell2u/").appendTo(t);
var ul = $("<ul/>");
$.each(data.query.results.statuses.status, function () {
$("<li/>").append(this.text).appendTo(ul);
@@ -38,10 +52,5 @@
});
});
</script>
- </head>
- <body>
- <h1>Test page for Query YQL</h1>
-
- <div id="content"></div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.