Bug Tracker

Ticket #2034: jquery_test.html

File jquery_test.html, 711 bytes (added by davidserduke, 14 years ago)

test case (built based on description)

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3  <head>
4    <title>Tester</title>
5    <style type="text/css">
6      #container { background:yellow; width:200px; }
7    </style>
8    <script type="text/javascript" src="../jquery-1.2.1.js"></script>
9    <script type="text/javascript">
10      var n = 0;
11      $(document).ready(function () {
12        $("#container").load("some.html", function () {
13              $("#adiv").text("Loaded #" + ++n + " times");
14            });
15      });
16    </script>
17  </head>
18  <body>
19    <div id="container">
20      this will be overwritten when loaded
21    </div>
22    <div id="adiv"></adiv>
23  </body>
24</html>