cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <mailingli...@c-ware.de>
Subject Fix for ajax periodicalUpdate
Date Tue, 24 Apr 2007 16:50:36 GMT
Hi,

I had some big trouble with the Internet-Explorer and periodical updates.
The Internet-Explorer didnt really send the requests to the sever, but 
answered them from it's cache.
Everytime the cache was manually cleared a real update was made, but 
only once.
The following modifications made periodicalUpdates work.

Hope this helps someone.

Chris


Index: 
D:/Projects/Univativ/Projects/Disco3/WebContent/rorg/apache/cocoon/ajax/reources/js/common.js
===================================================================
--- 
D:/Projects/Univativ/Projects/Disco3/WebContent/rorg/apache/cocoon/ajax/reources/js/common.js
   
(revision 395)
+++ 
D:/Projects/Univativ/Projects/Disco3/WebContent/rorg/apache/cocoon/ajax/reources/js/common.js
   
(working copy)
@@ -57,8 +57,9 @@
             load: function(type, data, evt){
                 insertion(target, data);
             },
-            mimetype: "text/plain"
-            // TODO: add an error-handling function
+            mimetype: "text/plain",
+            useCache: false,
+            preventCache: true
         });
        
     },



Mime
View raw message