Fiddler is a great tool, thanks for that tip!

Unfortunately, it doesn't help my problem. I figure I must be doing
something fundamentally wrong, since jquery is widely thought of as
browser agnostic.

So, I put together a small sample file that has everything in it (and
still exhibits the problem). If anyone can see something I'm doing
wrong, please point it out. Here's the html file:

===========================
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en"
  "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">

<head>
  <!-- saved from url=(0019)http://www.mvd.com/ -->
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>

  <title>jquery problem</title>

  <script src="./scripts/jquery.js" type="text/javascript"></script>

  <script type="text/javascript">
  <!--
  $(document).ready(function() {
      $.getjson('./files/v-winter.txt', function(data){
          $('tbody.schedule').empty();

          $.each(data, function(eindex, entry) {
            if (eindex == 1)
            {
              alert( entry['day'] + '-' + entry['date'] );
            }
          });
      });
    });
  -->
  </script>

</head>

<body>
  <table>
    <tbody class="schedule">
      <tr><td>row one</td></tr>
      <tr><td>row two</td></tr>
      <tr><td>row three</td></tr>
    </tbody>
  </table>

</body>

</html>
===========================


Reply via email to