Thanks Ricardo, your first revised block of code took away the error message in Internet Explorer. Doesn't look like the second block returned any of my data. I'm in the process of learning jQuery, so it's better that I play around with it anyways =)
I'm still having a problem getting the data to show up in IE (with the first revised block of code you supplied). The data fills in the DIV's one by one in Firefox, but returns what appears to be NULL values in IE. I can see each DIV change in IE, but it does not look like it's filling it in with the data like Firefox does. Any ideas? Thanks! - Adam On Sep 15, 11:46 pm, Ricardo <ricardob...@gmail.com> wrote: > Hmm. No idea why it doesn't work in IE, but here are some general > observations: > > You don't need the "jQuery(function(){" part around the function. > setTimeout(updateStatus, 20000); // use the function object > $(document).ready(updateStatus); //same here, pass the object, don't > call the function. this can also go in the <head> script along with > the rest > > See how that works out, here's the code:http://snipt.org/mogk > And you could use some logic to make it less spaguetti > too:http://snipt.org/mogl > > On Sep 15, 3:08 pm, knox203 <sandf...@gmail.com> wrote: > > > Hello everyone, I have the following code that works great in Firefox, > > Opera, Safari, but fails to work in IE. Can anyone take a look and > > maybe tell me what I'm doing wrong? Thanks! > > > <head> > > <script type="text/javascript" src="../conduit/jquery.js"></script> > > <script> > > function updateStatus(){ > > jQuery(function(){ > > $("#prov1hCount").load("source/provStats.php #prov1hCount"); > > $("#prov1hOntime").load("source/provStats.php > > #prov1hOntime"); > > $("#prov1hLate").load("source/provStats.php > > #prov1hLate"); > > $("#prov1hPuAverage").load("source/provStats.php > > #prov1hPuAverage"); > > $("#prov1hMTDPuAverage").load("source/provStats.php > > #prov1hMTDPuAverage"); > > $("#prov2hCount").load("source/provStats.php > > #prov2hCount"); > > $("#prov2hOntime").load("source/provStats.php > > #prov2hOntime"); > > $("#prov2hLate").load("source/provStats.php > > #prov2hLate"); > > $("#prov2hPuAverage").load("source/provStats.php > > #prov2hPuAverage"); > > $("#prov2hDelAverage").load("source/provStats.php > > #prov2hDelAverage"); > > $("#prov2hMTDPuAverage").load("source/provStats.php > > #prov2hMTDPuAverage"); > > }); > > setTimeout("updateStatus()",20000); > > } > > </script> > > </head> > > <body> > > ... > > </body> > > <script type="text/javascript"> > > $(document).ready(updateStatus()); > > </script>