You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Christofer Dutz <ma...@c-ware.de> on 2007/04/24 18:50:36 UTC

Fix for ajax periodicalUpdate

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
         });
        
     },