[geeklog-devel] Dynamic Comments...
vfuria at gmail.com
Thu Feb 3 23:29:57 EST 2005
On Mon, 31 Jan 2005 21:44:03 +0100, Niels Leenheer <niels at creatype.nl> wrote:
> However, I can see a couple of problems with the code you are currently
> First of all, you are using a single XMLHttpRequest object without
> it from being called more than once. As a result it is possible to
> interrupt an
> ongoing request. Try clicking on quickly on multiple triangles after
> each other,
> without waiting for one to finish loading. Only the request clicked on
> last will
> be honoured, the other ones will be 'loading' indefinately.
This was a big problem, I didn't quite use the solution you suggested
(I couldn't quite get it to work), but I did (if I may say so) a
ingenous little workaround.
> Secondly, there is a bug in the XMLHttpRequest implementation of Opera,
> which basically requeres and extra check inside the onreadystatechange
> function, otherwise it will be called multiple times after each other,
> but only the first time with the proper responseText.
OK, changed the code around to account for this. Hopefully it will
work with Opera now.
Thanks for all the suggestions Niels. Anyone else see any problems
More information about the geeklog-devel