"Unfortunately, it doesn't help my
problem"

Are you sure you understand what Fiddler does?

With the program running to the side of IE, you can see:
1) that the getJSON request is actually made  (which btw, it'll be
good to get in the habit of proper capitalization in JavaScript)
2) if it was, then what is the browser seeing returned






On Jan 6, 3:24 pm, jhm <jmay...@gmail.com> wrote:
> > I'd suggest downloading and installing "Fiddler" 
> > (http://www.fiddlertool.com)
>
> That's a great tool, thanks! 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:
>
> ===========================
> <head>
>   <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>
> ===========================

Reply via email to