another PageTemplate question
I am using the ActivImages product, which generates Javascript with: <dtml-with ActiveImages> <dtml-var JavaScript> </dtml-with> I tried: <span tal:replace="here/ActiveImages/JavaScript" tal:omit-tag="">test</span> as a replacement, but got Error Type: TALESError Error Value: exceptions.KeyError on js_header in "standard:'here/ActiveImages/JavaScript'", at line 7, column 1 Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
Sounds like you need to talk to ActivImages authors... Joachim Schmitz wrote:
I am using the ActivImages product, which generates Javascript with:
<dtml-with ActiveImages> <dtml-var JavaScript> </dtml-with>
I tried: <span tal:replace="here/ActiveImages/JavaScript" tal:omit-tag="">test</span>
as a replacement, but got
Error Type: TALESError Error Value: exceptions.KeyError on js_header in "standard:'here/ActiveImages/JavaScript'", at line 7, column 1
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I found the problem JavaScript=HTMLFile('public/JavaScript',globals() and the JavaScript.dtml contained <dtml-var js_header> I changed that and run into the next problem. tal quotes all "<script language="JavaScript">" into <script language="JavaScript"> is there a way to avoid this ? --On Freitag, März 01, 2002 17:27:37 +0000 Chris Withers <chrisw@nipltd.com> wrote:
Sounds like you need to talk to ActivImages authors...
Joachim Schmitz wrote:
I am using the ActivImages product, which generates Javascript with:
<dtml-with ActiveImages> <dtml-var JavaScript> </dtml-with>
I tried: <span tal:replace="here/ActiveImages/JavaScript" tal:omit-tag="">test</span>
as a replacement, but got
Error Type: TALESError Error Value: exceptions.KeyError on js_header in "standard:'here/ActiveImages/JavaScript'", at line 7, column 1
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
Joachim Schmitz wrote:
I found the problem
JavaScript=HTMLFile('public/JavaScript',globals()
and the JavaScript.dtml contained <dtml-var js_header>
I changed that and run into the next problem.
tal quotes all "<script language="JavaScript">"
into <script language="JavaScript"> is there a way to avoid this ?
Here's what you want: <tal:x tal:replace="structure here/ActiveImages/JavaScript" /> cheers, Chris PS: Note I did soem bonus compression for you so you don't need the omit-tag anymore :-)
--On Freitag, März 01, 2002 20:06:12 +0000 Chris Withers <chrisw@nipltd.com> wrote:
Joachim Schmitz wrote:
I found the problem
JavaScript=HTMLFile('public/JavaScript',globals()
and the JavaScript.dtml contained <dtml-var js_header>
I changed that and run into the next problem.
tal quotes all "<script language="JavaScript">"
into <script language="JavaScript"> is there a way to avoid this ?
Here's what you want:
<tal:x tal:replace="structure here/ActiveImages/JavaScript" />
cheers,
Chris
PS: Note I did soem bonus compression for you so you don't need the omit-tag anymore :-)
thanks a lot ;-) I buy you a beer next time Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
participants (2)
-
Chris Withers -
Joachim Schmitz