Hello, I'm trying to get some doubleqoutes to the final document, but I've been unsuccesful so far: <dtml-let hack="\"app\" ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\'"> </dtml-let> -- Riku Voipio riku.voipio@tietoenator.com 09-862 60764
----- Original Message ----- From: Riku Voipio <riku.voipio@tietoenator.com> To: <zope@zope.org> Sent: Wednesday, June 07, 2000 5:28 PM Subject: [Zope] escaping with dtml?
Hello, I'm trying to get some doubleqoutes to the final document, but I've been unsuccesful so far:
<dtml-let hack="\"app\" ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\'"> </dtml-let>
Maybe is not the best solution, but works... <dtml-let hack="'%sapp%s ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\'' %('\x22','\x22')"> <dtml-var hack> </dtml-let> Interesting, isn't it? :) PM
<dtml-let hack="_.chr(34)+'app'+_.chr(34)+' ONCHANGE='+_.chr(39)+'location.href=cookie?app=+this.options[this.selectedIndex].value'+_.chr(39)"> will do what you are trying to do ----- Original Message ----- From: Riku Voipio <riku.voipio@tietoenator.com> To: <zope@zope.org> Sent: Wednesday, June 07, 2000 10:28 AM Subject: [Zope] escaping with dtml? Hello, I'm trying to get some doubleqoutes to the final document, but I've been unsuccesful so far: <dtml-let hack="\"app\" ONCHANGE=\'location.href=cookie?app=+this.options[this.selectedIndex].value\'"> </dtml-let> -- Riku Voipio riku.voipio@tietoenator.com 09-862 60764 _______________________________________________ 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 )
participants (3)
-
Jim Sanford -
Marcel Preda -
Riku Voipio