Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 41438 invoked from network); 29 Dec 2009 10:16:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Dec 2009 10:16:56 -0000 Received: (qmail 64509 invoked by uid 500); 29 Dec 2009 10:16:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 64433 invoked by uid 500); 29 Dec 2009 10:16:55 -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 64425 invoked by uid 99); 29 Dec 2009 10:16:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 10:16:54 +0000 X-ASF-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,HTML_FONT_FACE_BAD,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jtviegas@gmail.com designates 209.85.220.223 as permitted sender) Received: from [209.85.220.223] (HELO mail-fx0-f223.google.com) (209.85.220.223) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 10:16:48 +0000 Received: by fxm23 with SMTP id 23so7513736fxm.18 for ; Tue, 29 Dec 2009 02:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=HvCE+G+rdQeNhmMNlzCT5cecO6WyemxPTO7uonnG1ww=; b=NOMHqyRo+SovT3BFVZdtpmlvzgPqOU+vz7h4VZlSusGvQeolH7b6VTdugzKaNfQq0i GSR8xmXdgUs8xPzvXQwRxbuLhHWx58OnHMsL3RVtRo1FciaKsEbx1Xqj1rPmQE8LiStg VfBo6K/X85pWyGaBd4Wy8rDCkH9b3122HFWXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=qBWWxu9A/6p1SuytTb2z8fSFaKBznQeJqcqC25jkIcuZ7QXwn9FRvjJaHwvn8yWL8c PyNcgrWSGc2WEuwIgZoajl90Xe9HJj1HpBlkzVbB2IyOFJWHJ+AO3t4vk3aWeDpFbLrZ /hbIrNqTC6eKUG3QCmqJ04xbzhw2Ks9K84afY= MIME-Version: 1.0 Received: by 10.239.182.168 with SMTP id q40mr1897808hbg.139.1262081786233; Tue, 29 Dec 2009 02:16:26 -0800 (PST) In-Reply-To: <45c308810912281318v57852ffeic31b3faa97de14e5@mail.gmail.com> References: <5f15e0020910170134if1da5f8tcb5040408a0bc0b7@mail.gmail.com> <3AC1E317-A758-4E4E-956A-ACC5E3C20631@gmx.at> <5f15e0020910190858q1c6329adjc2cc26c7bad962c3@mail.gmail.com> <18cbef3f0910192327g32e9b3d8jadcd5899f055e432@mail.gmail.com> <5f15e0020910200329x25cf6916k812084532aa2ae5@mail.gmail.com> <18cbef3f0910200403x282f1877y9a0d1103e9949d6d@mail.gmail.com> <5f15e0020911060321w5303bb9fyce535b25142c08c2@mail.gmail.com> <5f15e0020911060325x1e8e7347p8e811563b2c30bbe@mail.gmail.com> <5f15e0020912240720o5b68c4cbs9c1bb8ca259f4296@mail.gmail.com> <45c308810912281318v57852ffeic31b3faa97de14e5@mail.gmail.com> From: "joao tiago a. m. viegas" Date: Tue, 29 Dec 2009 10:16:06 +0000 Message-ID: <5f15e0020912290216h24f0bd4dmbefa9b4f5faf9ee7@mail.gmail.com> Subject: Re: problem showing pdf as text/plain with resourcereader To: users@cocoon.apache.org Content-Type: multipart/alternative; boundary=001485f6c44e8bc27a047bdb50c5 --001485f6c44e8bc27a047bdb50c5 Content-Type: text/plain; charset=UTF-8 oh thank you, but I'm not, if you'd read the message till the end you'd see there's: and if in the javascript function i change the function invocation for > cocoon.processPipelineTo("pagesave",null,nullos); > i get > processPipelineTo is not a function 2009/12/28 Dominic Mitchell > On Thu, Dec 24, 2009 at 7:20 AM, joao tiago a. m. viegas < > jtviegas@gmail.com> wrote: > >> i want to wish everybody an Happy Christmas and an Astounding Happy New >> Year. >> >> in the meantime, somewhere in the lower left corner of Europe, in a cocoon >> 2.1, >> >> i'm still on the flowscript issue and i can't figure out what is wrong >> with my code: >> >> - i have this block inside the components section in the sitemap >> >> >> >> >> >> - then i have this match >> >> >> >> >> >> - and then i have this javascript file in javascript/flow.js with a >> function >> >> function invoicecontroller() >> { >> var nullos = new Packages.org.apache.cocoon.ant.NullOutputStream(); >> processPipelineTo("pagesave",null,nullos); >> } >> >> ..now all i get is >> "processPipelineTo" is not defined. >> >> and if in the javascript function i change the function invocation for >> cocoon.processPipelineTo("pagesave",null,nullos); >> >> i get >> processPipelineTo is not a function >> >> can anybody tell me what am i missing here? >> >> > You're missing a "cocoon." -- there's no global function called > processPipelineTo(), but there is one in the cocoon object. > > -Dom > > --001485f6c44e8bc27a047bdb50c5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
oh thank you, but I'm not, if you'd read the message till the end y= ou'd see there's:

and if in the javascript function i ch= ange the function invocation for
cocoon.processPipel= ineTo("pagesave",null,nullos);
i get
processPipelineTo i= s not a function



2009/12/28 Dominic Mitchell <dom@happygiraffe.net&= gt;
On Thu, Dec 24, 2009 at 7:20 A= M, joao tiago a. m. viegas <jtviegas@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> i want to wish everybody an Happy Christmas and an Astounding Happy New Yea= r.

in the meantime, somewhere in the lower left corner of Europe, in= a cocoon 2.1,

i'm still on the flowscript issue and i can't= figure out what is wrong with my code:
  • i have this block inside the components section in the sitemap
  • =
<map:flow language=3D"JavaScript">
=C2=A0=C2=A0 <= ;map:script src=3D"javascript/flow.js" />
</map:flow>=
  • then i have this match
<map:match pattern=3D"page.pdf"= ;>
=C2=A0=C2=A0 <map:call function=3D"invoicecontroller"= />
</map:match>
  • and then i have this javascript fil= e in javascript/flow.js with a function
function invoicecontroller()
{
=C2=A0=C2=A0 var nullos =3D = new Packages.org.apache.cocoon.ant.NullOutputStream();
processPipelineTo= ("pagesave",null,nullos);
}

..now all i get is
"= ;processPipelineTo" is not defined.

and if in the javascript function i change the function invocation for<= br>cocoon.processPipelineTo("pagesave",null,nullos);

i get=
processPipelineTo is not a function

can anybody tell me what am = i missing here?


You're missing a "cocoo= n." -- there's no global function=C2=A0called=C2=A0processPipelineTo(), but there is o= ne in the cocoon obj= ect.

-Dom


--001485f6c44e8bc27a047bdb50c5--