It would be interesting to see './files/v-winter.txt' as well,
specifically how it's being served.

Total shot in the dark, but I remember having had a similar problem
(IE-only) when I started playing with XML files many moons ago.

Maybe it would help if you served that file with an 'content-type:
application/json' header? That was the problem I had with the XML
file.


On Jan 6, 9: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