Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 37680 invoked from network); 7 Dec 2006 16:33:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 16:33:58 -0000 Received: (qmail 82304 invoked by uid 500); 7 Dec 2006 16:34:00 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 82247 invoked by uid 500); 7 Dec 2006 16:34:00 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 82236 invoked by uid 99); 7 Dec 2006 16:34:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 08:34:00 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of columbro@gmail.com designates 66.249.82.226 as permitted sender) Received: from [66.249.82.226] (HELO wx-out-0506.google.com) (66.249.82.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 08:33:46 -0800 Received: by wx-out-0506.google.com with SMTP id h30so582887wxd for ; Thu, 07 Dec 2006 08:33:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=iIeB9vqFDC7T7q13vlg2iypfFlQEep9FjaF9IDVTNKS12fwsKiTXqL6iXo0CPEGqmStqijJwqzxqphjLbrK2C6tJWzjWSU/AxlXXOwZncWnQpdunwwBUYWa5RhuMapUJPEiVGEifD0IbvU7npzO1GiiIfUg6fZLzevtWFp0Ig6s= Received: by 10.70.129.5 with SMTP id b5mr3983664wxd.1165509205663; Thu, 07 Dec 2006 08:33:25 -0800 (PST) Received: by 10.70.34.4 with HTTP; Thu, 7 Dec 2006 08:33:25 -0800 (PST) Message-ID: <67f608380612070833w7fde16a0q790b8b5712cb4042@mail.gmail.com> Date: Thu, 7 Dec 2006 17:33:25 +0100 From: "Gabriele Columbro" To: users@cocoon.apache.org Subject: Dojo and DWR integration problem MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_65878_7775431.1165509205632" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_65878_7775431.1165509205632 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I'm stuck on an integration problem between a DWR [1] AJAX based application and our beloved Dojo-based AJAX CForms. I know it's weird but this is the requirement (better the context I'm working in) and I have to cope with that (we're also not allowed to use iframes). Basically my application works gracefully ajaxed when standalone, but not when loaded within an XHR. I solved the basical problems of inclusions (like xDomain scripting and actual execution of the dojo.js file) so that now all files (directly referenced via script and dinamically loaded via XHR) are properly loaded. Still my form ( with ajax="true"and with dojoType="CFormsForm" ) is not "bound" to the Dojo widget (NB: only when the page is loaded via XHR not in the app started via a regular browser GET), and so the widget in not connected to the event, causing a ful page refresh. I know it's not a proper Cocoon question, and for this I asked support to the Dojo ML, so you can have a more detailed description of the problem here [2]. Any tip or suggestion is welcome, TIA Gabriele [1] http://getahead.ltd.uk/dwr/ [2] http://dojotoolkit.org/pipermail/dojo-interest/2006-December/022025.html ----------------------------------------- Eng. Gabriele Columbro Consultant at Sourcesense Italy ----------------------------------------- work: g.columbro@pronetics.it private: columbro@gmail.com mobile: (0039)3201612846 yahoo: g.columbro gtalk: columbro@gmail.com AIM: gabrielecolumbro ----------------------------------------- "Keyboard not found. Press F1 to continue" ----------------------------------------- ------=_Part_65878_7775431.1165509205632 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,
I'm stuck on an integration problem between a DWR [1] AJAX based application and our beloved Dojo-based AJAX CForms. I know it's weird but this is the requirement (better the context I'm working in) and I have to cope with that (we're also not allowed to use iframes).
Basically my application works gracefully ajaxed when standalone, but not when loaded within an XHR.
I solved the basical problems of inclusions (like xDomain scripting and actual execution of the dojo.js file) so that now all files (directly referenced via script and dinamically loaded via XHR) are properly loaded.
Still my form ( with ajax="true"and with dojoType="CFormsForm" ) is not "bound" to the Dojo widget (NB: only when the page is loaded via XHR not in the app started via a regular browser GET), and so the widget in not connected to the event, causing a ful page refresh.
I know it's not a proper Cocoon question, and for this I asked support to the Dojo ML, so you can have a more detailed description of the problem here [2].

Any tip or suggestion is welcome,
TIA

Gabriele









[1] http://getahead.ltd.uk/dwr/
[2] http://dojotoolkit.org/pipermail/dojo-interest/2006-December/022025.html


-----------------------------------------
Eng. Gabriele Columbro
Consultant at Sourcesense Italy
-----------------------------------------
work: g.columbro@pronetics.it
private: columbro@gmail.com
mobile: (0039)3201612846

yahoo: g.columbro
gtalk: columbro@gmail.com
AIM:   gabrielecolumbro

-----------------------------------------
"Keyboard not found.
Press F1 to continue"
----------------------------------------- ------=_Part_65878_7775431.1165509205632--