[jQuery] Re: script behaves different in IE than in Firefox

2008-12-27 Thread Ricardo Tomasi
What exactly doesn't work on FF? From what I see, you're not using the value returned from the GET anywhere. When you click a link, it sends the GET immediately and then returns true, which causes the link to be followed. My guess is that IE finishes the Ajax request before going on to the href, w

[jQuery] Re: script behaves different in IE than in Firefox

2008-12-27 Thread lapinkulta
Now i get your point. However, it must be also a jquery issue as the script and click-count.php works fine in IE. I also think there are no overlapping requests, as the script is fired only once when a "a" is clicked. Still wondering what could be wrong...

[jQuery] Re: script behaves different in IE than in Firefox

2008-12-27 Thread donb
The server side needs to be aware of and handle multiple overlapping requests. It is a problem with your script click-count.php, not the client side get. On Dec 27, 3:37 am, lapinkulta wrote: > Thank you donb. > The script counts correct in IE without the alert. > What should I use instead of

[jQuery] Re: script behaves different in IE than in Firefox

2008-12-27 Thread lapinkulta
Thank you donb. The script counts correct in IE without the alert. What should I use instead of .get() ?

[jQuery] Re: script behaves different in IE than in Firefox

2008-12-26 Thread donb
The .get() is asynchronous. By adding the alert() you pause the script long enough for each get to complete. I'm sure click-count.php is losing data when it comes in too quickly It probably reads a database value, increments it, and writes it back. If not a query like 'update sometable set some