Skip to main content

Bug Tracker

Side navigation

Ticket #2034: jquery_test.html


File jquery_test.html, 0.7 KB (added by davidserduke, December 10, 2007 03:49PM UTC)

test case (built based on description)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>Tester</title>
    <style type="text/css">
      #container { background:yellow; width:200px; }
    </style>
    <script type="text/javascript" src="../jquery-1.2.1.js"></script>
    <script type="text/javascript">
      var n = 0;
      $(document).ready(function () {
        $("#container").load("some.html", function () {
              $("#adiv").text("Loaded #" + ++n + " times");
            });
      });
    </script>
  </head>
  <body>
    <div id="container">
      this will be overwritten when loaded
    </div>
    <div id="adiv"></adiv>
  </body>
</html>

Download in other formats:

Original Format