After some hours of experiments I would like to draw some (puzzled)
conclusions.
Previous Episodes: ---The Code---
<script type="text/javascript">
connect(window, "onload", partial(caricacombo,'test'));</script>
var caricacombo=function(tipo) {
d = loadJSONDoc("http://192.168.9.1:8081/da/combo.py",
{"combocontents":tipo});
alert(d);
d.addCallbacks(FillCombo,metadataFetchFailed);
var metadataFetchFailed = function (err) {
alert("The metadata for MochiKit.Async could not be fetched :(");
alert("Error:"+err);
}
---Testing here--
1) With Cache Disabled (by means of IE Developer Toolbar), alert(d)
gives:
Deferred(2,unfired) and then:
The metadata for MochiKit.Async could not be fetched :(
Error:[objectError]
2) With Cache Enabled but empty (first loading of the page):
Same results as in 1)
3) With Cache Enabled after refreshing the page, alert(d) gives:
Deferred(2,success) and then:
the callBack function is called and everything is ok
note: in Firefox I never get Deferred(2,success) but always
Deferred(2,unfired), nonetheless it is always working ok.
---The solution to: why adding a timestamp as a second parameter IE
was not working? (see previous posts for details)
Of course because adding a timestamp, as shown in 1) 2) 3), IE can
never find that file in cache! In fact adding a timestamp as second
parameter I always got the same as 1)
---Enforcement: what if postJSON?
In line with 1) 2) 3) I can never had the same code working using
postJSON (POST->no cache), in Firefox is ok also with postJSON.
Test Configuration: IE6+WinXP, IE6+Win2003,IE6+Win2k,Mochikit 1.4
Please suggest any flaws you detect in my code/tests (there should be,
I can not believe IE behaves so badly) or any other tries I could
make.
.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---