From users-return-97717-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Thu Jun 04 11:18:18 2009 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 88295 invoked from network); 4 Jun 2009 11:18:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jun 2009 11:18:18 -0000 Received: (qmail 97601 invoked by uid 500); 4 Jun 2009 11:18:29 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 97528 invoked by uid 500); 4 Jun 2009 11:18:29 -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 Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 60094 invoked by uid 99); 4 Jun 2009 08:55:32 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: how-to reference external js from cocoon 2.2 block Date: Thu, 4 Jun 2009 10:57:12 +0200 Message-ID: <7C655C04B6F59643A1EF66056C0E095E025046E3@eusex01.sweden.ecsoft> In-Reply-To: <18cbef3f0906040139u1f7c9822jcc5148959d089048@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how-to reference external js from cocoon 2.2 block Thread-Index: Acnk8CoQPJe7POK/RXqJQIMeNhOdCwAAfqmw References: <7C655C04B6F59643A1EF66056C0E095E02504691@eusex01.sweden.ecsoft> <18cbef3f0906040139u1f7c9822jcc5148959d089048@mail.gmail.com> From: "Robby Pelssers" To: X-OriginalArrivalTime: 04 Jun 2009 08:55:00.0693 (UTC) FILETIME=[24C5C850:01C9E4F2] X-Virus-Checked: Checked by ClamAV on apache.org Thx a lot Joachim, You saved me a lot of headache ;-) I knew it was somehow related to cocoon because if I would copy-paste = the generated code in a plain .html file it would render without any = problems. I just didn't know the exact cause. Cheers mate !! Robby -----Original Message----- From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]=20 Sent: Thursday, June 04, 2009 10:40 AM To: users@cocoon.apache.org Subject: Re: how-to reference external js from cocoon 2.2 block 2009/6/4 Robby Pelssers : > Hi all, > > > > I'm a bit puzzled about how to reference an external javascript file. > > > > Let's say I've put it in > > > > src/main/resources/external/js/test.js > > > > I thought about referencing it the same way as my css file but somehow = this > does not work.=A0 Can someone explain how I can accomplish this?=A0 = Now adding > the > > =A0=A0=A0=A0=A0=A0=A0 ... > > =A0 > You're probably using some variant of the XMLSerializer which "closes" the script HTML tag. Browsers don't get that and render empty pages although the view source does display all HTML. Add a   in the script tag. Jasha Joachimsthal j.joachimsthal@onehippo.com - jasha@apache.org www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100 +1 (707) 773-4646 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org