Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 71029 invoked from network); 20 Sep 2006 13:27:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 13:27:56 -0000 Received: (qmail 18002 invoked by uid 500); 20 Sep 2006 13:27:56 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 17538 invoked by uid 500); 20 Sep 2006 13:27:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Delivered-To: moderator for dev@cocoon.apache.org Received: (qmail 72999 invoked by uid 99); 20 Sep 2006 13:02:30 -0000 X-ASF-Spam-Status: No, hits=2.1 required=5.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET Subject: [AJAX] cocoon.ajax.periodicalUpdate and IE caching problems Date: Wed, 20 Sep 2006 15:02:39 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6DCB5.0F9126C0" Message-ID: X-MS-Has-Attach: Content-class: urn:content-classes:message X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: [AJAX] cocoon.ajax.periodicalUpdate and IE caching problems Thread-Index: Acbcs7XAXlHTNEriRs+o1SgFub05rA== From: "Christofer.Dutz@univativ.de" To: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C6DCB5.0F9126C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I already posted this to the user list, but I think it is supposed to go = to this list. =20 I had some problems using the internet explorer in conjunction with the = periodicalUpdate functionality (Mozilla worked fine). The result was = that the update worked fine the first time it was executed and never = again. If you manually cleared the cache again one update was done. You = have to modify a file inside the cocoon-ajax-block.jar here the = org\apache\cocoon\ajax\resources\js\common.js file has to be updated.=20 =20 dojo.io.bind({ url: href, load: function(type, data, evt){ insertion(target, data); }, mimetype: "text/plain // TODO: add an error-handling function }); =20 Has to be changed to: =20 dojo.io.bind({ url: href, load: function(type, data, evt){ insertion(target, data); }, mimetype: "text/plain", useCache: false,=20 preventCache: true // TODO: add an error-handling function }); =20 With this small change the periodicalUpdate seems to work fine. Since = caching does not really make sense in this case, it might be useful = changing this in the main cocoon distribution. =20 Regards, Christofer =20 [ c h r i s t o f e r d u t z ] =20 IT-Berater univativ GmbH & Co. KG Robert-Bosch-Str. 7, 64293 Darmstadt =20 fon: 0 61 51 / 66 717 - 21 fax: 0 61 51 / 66 717 - 29 email: christofer.dutz@univativ.de http://www.univativ.de =20 Darmstadt, Stuttgart, Karlsruhe, D=FCsseldorf ------_=_NextPart_001_01C6DCB5.0F9126C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

I already posted this to the user list, but I = think it is supposed to go to this list.

 

I had some problems using the internet = explorer in conjunction with the periodicalUpdate functionality (Mozilla worked = fine). The result was that the update worked fine the first time it was executed = and never again. If you manually cleared the cache again one update was done. You = have to modify a file inside the cocoon-ajax-block.jar here the = org\apache\cocoon\ajax\resources\js\common.js file has to be updated.

 

        dojo.io.bind({

                url: href,

                load: function(type, data, = evt){

                    insertion(target, = data);

                },

                mimetype: = "text/plain

                // TODO: add an error-handling = function

            });

 

Has to be changed = to:

 

        dojo.io.bind({

                url: href,

                load: function(type, data, = evt){

                    insertion(target, = data);

                },

                mimetype: = "text/plain",

                useCache: false,

           &= nbsp;    preventCache: true

                // TODO: add an error-handling = function

            });

 

With this small change the periodicalUpdate = seems to work fine. Since caching does not really make sense in this case, it = might be useful changing this in the main cocoon = distribution.

 

Regards,

     = Christofer

 

[ c h r i s t o f e r   d u t z = ]

 

IT-Berater

univativ GmbH & Co. = KG

Robert-Bosch-Str. 7, 64293 = Darmstadt

 

fon: 0 61 51 / 66 717 - 21

fax: 0 61 51 / 66 717 - = 29

email: = christofer.dutz@univativ.de

http://www.univativ.de

 

Darmstadt, Stuttgart, Karlsruhe, = D=FCsseldorf

------_=_NextPart_001_01C6DCB5.0F9126C0--