Re: [Zope] extract page title

2007-04-25 Thread Dean Hale
Hello all, Thanks very much for all of your help. thanks dean On 24 Apr 2007, at 16:20, Andreas Jung wrote: --On 24. April 2007 09:56:41 -0500 Jeff Rush [EMAIL PROTECTED] wrote: I don't see above him putting a title tag within the script tag. He wants to put the *value* of the title

Re: [Zope] extract page title

2007-04-25 Thread SpiderX
It escapes the characters inside the SCRIPT block before processing, why is why you can't do any TALES or anything else really in there... On 4/24/07, Andreas Jung [EMAIL PROTECTED] wrote: --On 25. April 2007 00:41:19 -0500 Jeff Rush [EMAIL PROTECTED] wrote: Andreas Jung wrote: As far as

Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 24. April 2007 15:05:49 +0100 Dean Hale [EMAIL PROTECTED] wrote: Hi I'm trying to implement some web tracking code within a page template, however a little stuck. In the code below i'd like to append the page template - page title between the title tags dynamically rather than having

Re: [Zope] extract page title

2007-04-24 Thread Dean Hale
Hi Andreas, Thanks, will try basically if i have some zpt pages with the tiltle titleINTRODUCTION/title titleABOUT/title somehow within below the page title should be appended after 'websitename.' script language='JavaScript1.1' type='text/javascript' noscript img

Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 24. April 2007 15:25:24 +0100 Dean Hale [EMAIL PROTECTED] wrote: Hi Andreas, Thanks, will try basically if i have some zpt pages with the tiltle titleINTRODUCTION/title titleABOUT/title somehow within below the page title should be appended after 'websitename.' script

Re: [Zope] extract page title

2007-04-24 Thread Dean Hale
Hi Andreas, Thanks - i know the title does not belong in a script tag, i just want the text within the title tag appended within the javascript, not the tags themselves. Sorry its my explanations for help that are unclear. thanks dan On 24 Apr 2007, at 15:35, Andreas Jung wrote:

Re: [Zope] extract page title

2007-04-24 Thread Jeff Rush
Andreas Jung wrote: --On 24. April 2007 15:25:24 +0100 Dean Hale [EMAIL PROTECTED] wrote: basically if i have some zpt pages with the title titleINTRODUCTION/title titleABOUT/title somehow within below the page title should be appended after 'websitename.' script

Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 24. April 2007 15:40:22 +0100 Dean Hale [EMAIL PROTECTED] wrote: Hi Andreas, Thanks - i know the title does not belong in a script tag, i just want the text within the title tag appended within the javascript, not the tags themselves. Sorry its my explanations for help that are

Re: [Zope] extract page title

2007-04-24 Thread Maciej Wisniowski
Hi Andreas, Thanks - i know the title does not belong in a script tag, i just want the text within the title tag appended within the javascript, not the tags themselves. Sorry its my explanations for help that are unclear. I'm not sure if I understand you but... Where title tag content

Re: [Zope] extract page title

2007-04-24 Thread Philip Kilner
Hi Dean, Dean Hale wrote: I'm trying to implement some web tracking code within a page template, however a little stuck. In the code below i'd like to append the page template - page title between the title tags dynamically rather than having to manually add to each page script

Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 24. April 2007 09:56:41 -0500 Jeff Rush [EMAIL PROTECTED] wrote: I don't see above him putting a title tag within the script tag. He wants to put the *value* of the title tag inside the script tag. It seems some form of a string: expression would do it, assuming the title is not

Re: [Zope] extract page title

2007-04-24 Thread Jeff Rush
Andreas Jung wrote: As far as I can recall: you can't use TALES within a SCRIPT block. That's why you must generate your stuff outside inside a script. Ah thanks I wasn't aware of that exclusion, never having tried it or found it documented. Then yes your approach is the only one left.

Re: [Zope] extract page title

2007-04-24 Thread Andreas Jung
--On 25. April 2007 00:41:19 -0500 Jeff Rush [EMAIL PROTECTED] wrote: Andreas Jung wrote: As far as I can recall: you can't use TALES within a SCRIPT block. That's why you must generate your stuff outside inside a script. Ah thanks I wasn't aware of that exclusion, never having tried it