Hi,

I'm writing a pade that uses loadJSONDoc (..) to load most of the data,
the code looks something like that:
...
var d = loadJSONDoc (url);
d.addBoth (cleanup);
d.addCallbacks (success, fail);
...

Everything is fine and jolly in Firefox, Opera, etc, but not in IE. As
many of you probably already know IE has a habbit of caching pages and
async JS requests to server. (And no, at least at the moment, I have
nothing against caching the results.) So, why isn't that code working
and what has it to do with caching?

When the loadJSONDoc (..) is called, IE quickly looks the result up
from the cache, and returns it. But when it does that, the callbacks
haven't been attached yet, so the result goes *poof* and IE users are
left with the loading bar.

How have others dealed with such situation? Is there any trick to
getting the callbacks attached before the async request is made? If
there isn't, then why?

All the best,
Mart


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to