Bug Tracker

Ticket #4748: test.html

File test.html, 985 bytes (added by morgancodes, 11 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2   "http://www.w3.org/TR/html4/strict.dtd">
3
4<html lang="en">
5<head>
6        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7        <title>untitled</title>
8        <meta name="generator" content="TextMate http://macromates.com/">
9        <meta name="author" content="Morgan Packard">
10        <!-- Date: 2009-06-10 -->
11        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
12</head>
13<body>
14<script>
15
16var xml;
17
18
19
20$.ajax({
21  type: "GET",
22  url: "data.xml",
23  success: function(data){
24      var node = $("CI:first", data);
25      var query1 = $("T TX", node).length;
26      var query2 = $("T", node).find("TX").length;
27     
28      var msg = "";
29      msg += "parent node length: " + node.length;
30      msg += "\n";
31      msg += '$("T TX", node).length: ' + query1;
32      msg += "\n";
33      msg += '$("T", node).find("TX").length: ' + query2;
34      alert(msg);
35  }
36});
37
38
39</script>
40</body>
41</html>