[thelist] .NET 2.0, Events and AJAX

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Mon Jan 23 13:13:07 CST 2006


> Your ideas pushed me in a slightly different direction. I could have an
> AJAX HTTP HEAD request fired off every few seconds, and if the last
> modified date of the file changes, then fetch the required data. Does
> that sound feasible (and reasonable), do you think?

"Every few seconds" may cause an overhead for large number of users.

We use something similar in our warning sytem and our update interval
is 10 seconds (for around 400-500 concurrent users at peak times).

It is fairly easy to change the timing interval to suit your needs though.

Regarding the HEAD request and modified date, Internet explorer has a
nasty habit of caching things (especially it loves to cache XML
files). So make sure that you are reading fresh data and not a cached
version.

Possibly simply adding a random number to your GET request may ensure
you get fresh data.

When it comes to client-side, you won't know what will happen for
sure, unless you implement the solution.

However your overall methodology seemed sound to me.

Good luck!
--
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/



More information about the thelist mailing list