Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 3772 invoked from network); 22 Nov 2004 11:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Nov 2004 11:43:53 -0000 Received: (qmail 22981 invoked by uid 500); 22 Nov 2004 11:43:37 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 22938 invoked by uid 500); 22 Nov 2004 11:43:36 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 22918 invoked by uid 99); 22 Nov 2004 11:43:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.11.32] (HELO smtp001.mail.ukl.yahoo.com) (217.12.11.32) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 22 Nov 2004 03:43:32 -0800 Received: from unknown (HELO ?81.98.164.53?) (beya?net1@81.98.164.53 with plain) by smtp001.mail.ukl.yahoo.com with SMTP; 22 Nov 2004 11:43:25 -0000 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: References: Content-Type: multipart/mixed; boundary=Apple-Mail-19-410036990 Message-Id: From: Andrew M Subject: Re: HowTo pass cocoon variables into client-side javascript? Date: Mon, 22 Nov 2004 11:43:24 +0000 To: users@cocoon.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Apple-Mail-19-410036990 Content-Type: multipart/alternative; boundary=Apple-Mail-20-410036990 --Apple-Mail-20-410036990 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Derek, maybe you missed my earlier post, but my solution was this: In jx page (pop-up): In xsl template: There must be a more efficient way to do this!!? regards Andrew On 22 Nov 2004, at 10:13, Derek Hohls wrote: > Andrew > > Maybe you should expand this a bit more; doesn't > the ASP code you quote run on the server? If > so, then there are obviously Cocoon equivalents. > Secondly, the javascript code that runs on the > client machine can be generated on the server - > and at generation time (ie. just before the popup > window is created by the server) the session status > could be determined and made part of the code. > > Just some speculative ideas!! > Derek > >>>> andrew@jibeya.com 2004/11/22 11:55:12 AM >>> > Hi, > just to make things more understandable..... > > 1. User clicks on a link which opens a pop-up window > 2. javascript in the pop-up window determines whether the session is > still current > 3. If the session has expired, close the pop-up window, and reload the > > referrer window > > Hence the reason I need to know how to pass cocoon variables into > client-side javascript, not unless server-side javascript (rhino) is > now capable of this!! ;-) > > regards > > Andrew > On 22 Nov 2004, at 09:03, Andrew M wrote: > >> Hi, >> in ASP I can do: >> >> var testSessionState = <%= getSessionState %> >> >> How can I achieve the same thing in cocoon? >> >> >> regards >> >> Andrew >> >> >> > --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > MailScanner thanks transtec Computers for their support. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --Apple-Mail-20-410036990 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Derek, maybe you missed my earlier post, but my solution was this: In jx page (pop-up): < < < < < In xsl template: < There must be a more efficient way to do this!!? regards Andrew On 22 Nov 2004, at 10:13, Derek Hohls wrote: Andrew Maybe you should expand this a bit more; doesn't the ASP code you quote run on the server? If so, then there are obviously Cocoon equivalents. Secondly, the javascript code that runs on the client machine can be generated on the server - and at generation time (ie. just before the popup window is created by the server) the session status could be determined and made part of the code. Just some speculative ideas!! Derek andrew@jibeya.com 2004/11/22 11:55:12 AM >>> Hi, just to make things more understandable..... 1. User clicks on a link which opens a pop-up window 2. javascript in the pop-up window determines whether the session is still current 3. If the session has expired, close the pop-up window, and reload the referrer window Hence the reason I need to know how to pass cocoon variables into client-side javascript, not unless server-side javascript (rhino) is now capable of this!! ;-) regards Andrew On 22 Nov 2004, at 09:03, Andrew M wrote: Hi, in ASP I can do: var testSessionState = <<%= getSessionState %> How can I achieve the same thing in cocoon? regards Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --Apple-Mail-20-410036990-- --Apple-Mail-19-410036990 Content-Transfer-Encoding: base64 Content-Type: image/gif; x-unix-mode=0644; name="beya-email.gif" Content-Disposition: inline; filename=beya-email.gif R0lGODlhvgAyAOYAAPKqRvrgvPOtTfvmyfvlxfnWpfGjNvS4Zf3x4PCeLfzs1vnZq/bAdvGkOffJ ifCdKvrfuv769PnYqvKoQvvozPS2Yf727PjRmf/9+/KuT/XCefKpRP3w3vrdtvfKjPW8bfrbsPCb JfOxVffNkvCZIffHhPW/dPOsSvSxVfOrSPGcJ/bFgf/+/P3z5P748PjUovW+cvzu2vjNk/W6aO+a JPSzWfbDe/W7av758vS1XvvhvfjSnfKnPvzq0v306PChM/OyWPGmPvfOlPCbJvviwf305vzt2PbI hva/c/GeK/KmPP3v3PKnQPS0XPzq0PGjN/rcs++ZI/nXqPnToPW+cPCfMPOvUvGmPf779/CZH/Cg Me+ZH/GhMf/8+fCYH////vrgu/W9cP/9/P78+P737vCaI/zr1PfMj/779vGgMf747//8+Pzu2fCh MfjPl/726/bDfvKqRfGlO/716vzpz/GiNPGfLvKpRf316v316PGoQvCYIO+YIO+YH/CZIP///yH5 BAAAAAAALAAAAAC+ADIAAAf/gH+Cg4SFhoeIiYqLjI2Oj5CRkpOUlZaXm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xQY4QtrsMaI hQArMgTrJ3+wwRZkACsWdOAOEPhCBarAhkFYoCkIc/wDdMACMfzCDX2gAdbwB2ggHTRgBRLAByCg LV+wBCNAD9GHdBbwAQzBKWQyIY3BADmzfWWQBBAoCATgBylRCCbQBzFgBH5wBPX2Bx3QB/5WCAfw ABzAVAbUAipAQpDW/wdWcAF+UH8RGIFYAATecUd2ZhpekAYveAgouG6CwAB2cAhqUAZC4AFD4CuE cABP4HKCQAd8cAECoAcS50PBsy0qIAADEAVWMAAI94M7FwPy4h0xoh4nUByJgIL7JQhfYAVP4AB8 2Id8GAJhoHvedQVAxV9JgARxEAZy4QcbWAgnwAN/8ALCxQM2AAGhxoai8BX+5C34BQNqsAgKQAPQ JwhiIAAh8ASoiIoGgIpMcAY1UAOIsAZPgASHIAZyMAM8kGCD4AB8MICFUAFy4EkcIARAEAV+IAcF h4mcgANwYGcRtELNozyNYAQhMIqCUAMbkHLaqI1jIAYVwAMSNwhiAP8AsGgIbxAFK7ABuigII+AH 3TYIJnB0goAHEgBOv6WMnsCMchAHANCP/sh7/khuNSB2iqAA1VgIZ7AHiadgfECQgwAHNPCBg/AC fdABTLCOf0AAfRAlhNAFAMADWvgHCJAAG4WPnSAGOIBy27iS3IhejECN1vgHlpMBVkgAjDIHWnAC vvIFUEAGMRAFtEgIZmAHViCLGMlhPyCROHADXpACLCBSg3AH5WiSVHkICrAHAWAIHcAHQVAACIAA IEBSQKAXEEACQSAFCDAHYAAEaxOJfrACA2ABCnABD/AEFKUFKlgIbGAAWgAFc8ABBVBMWgAAIFAH QtACFmABbABeHFlhlY4pCDEQBGMoCANwAwKQAgBwB1ZQAh9IATdwAicAACnQBFLQVyBgBZjZe0ig MhzWUIUQAzBwmSlwAjdAACUgAgoQBncgmimQASJwBmv4mMI5nMRZnMZ5nMiZnMq5nMsZCAA7 --Apple-Mail-19-410036990 Content-Type: multipart/alternative; boundary=Apple-Mail-21-410036991 --Apple-Mail-21-410036991 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed =A0+The home of urban music + http://www.beyarecords.com --Apple-Mail-21-410036991 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 = Arial8080,0000,0000= =A0+The home of urban music + http://www.beyarecords.com --Apple-Mail-21-410036991-- --Apple-Mail-19-410036990 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --Apple-Mail-19-410036990--