Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 18152 invoked from network); 11 Nov 2006 17:26:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2006 17:26:41 -0000 Received: (qmail 67774 invoked by uid 500); 11 Nov 2006 17:26:50 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67467 invoked by uid 500); 11 Nov 2006 17:26:49 -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 Received: (qmail 67456 invoked by uid 99); 11 Nov 2006 17:26:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Nov 2006 09:26:49 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of riceyeh@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Nov 2006 09:26:35 -0800 Received: by py-out-1112.google.com with SMTP id n39so439341pyh for ; Sat, 11 Nov 2006 09:26:12 -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=K+nB0fbqKH4SKZ03uEslU7Y7sVOcesRn9nKrq9OW4DAN5YMPJwoVIwCKiEVBaE5Dv/iRvjm+oNfGOWf82vz/w2EGoYn6CFLTxPAlyRcxVEQu9PToOjDDf+m11AGjMtSu8ezQj25066wK/utCJ7MTUMNYxCDyfL3gDhmf+Cp1QjY= Received: by 10.35.129.19 with SMTP id g19mr6354025pyn.1163265362023; Sat, 11 Nov 2006 09:16:02 -0800 (PST) Received: by 10.35.134.13 with HTTP; Sat, 11 Nov 2006 09:16:01 -0800 (PST) Message-ID: <47f71d940611110916w39201098s7ad4cba5b74812f3@mail.gmail.com> Date: Sun, 12 Nov 2006 01:16:01 +0800 From: "Rice Yeh" To: dev@cocoon.apache.org Subject: call a function not in global object in MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_685_24364564.1163265361548" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_685_24364564.1163265361548 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, It seems for now the function attribute in must be a function in the global object. I think it might be better if this function could be within a scope object because our project groups all javascript objects like java packages (or just like what dojo does). There are more javascript codes than java codes in our project, so goruping them in different naming spaces is needed. Cocoon itself is a good environment for easily javascript coding at the server side with its flowscript and continuation. However, it seems not that care about naming space at javascript code itself. Maybe some ideas from dojo can be borrowed here. Like dojo has dojo naming space, cocoon has cocoon naming space, and within cocoon, there are cocoon.flow, cocoon.flow.continuation,... Rice ------=_Part_685_24364564.1163265361548 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,
  It seems for now the function attribute in <map:call> must be a function in the global object. I think it might be better if this function could be within a scope object because our project groups all javascript objects like java packages (or just like what dojo does). There are more javascript codes than java codes in our project, so goruping them in different naming spaces is needed. Cocoon itself is a good environment for easily javascript coding at the server side with its flowscript and continuation. However, it seems not that care about naming space at javascript code itself. Maybe some ideas from dojo can be borrowed here. Like dojo has dojo naming space, cocoon has cocoon naming space, and within cocoon, there are cocoon.flow, cocoon.flow.continuation,...

Rice
------=_Part_685_24364564.1163265361548--