how to for that function REDIRECT understand a variable. ex. <dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var test>')">
how to for that function REDIRECT understand a variable.
ex.
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var test>')">
You can't nest dmtl tags try : <dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)"> Rik
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+_.str(test))"> You can't (and don't need to) put dtml tags inside dtml tags. Joaldo Junior wrote:
how to for that function REDIRECT understand a variable.
ex.
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var test>')">
_______________________________________________ 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 )
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)"> ----- Original Message ----- From: "Joaldo Junior" <jjunior@cidadei.com.br> To: <zope@zope.org> Sent: Tuesday, October 24, 2000 3:38 PM Subject: [Zope] redirect
how to for that function REDIRECT understand a variable.
ex.
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var test>')">
_______________________________________________ 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 )
Hi!
how to for that function REDIRECT understand a variable.
ex.
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var test>')">
use <dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)"> with "" you will enter the python scope and thus no dtml syntax is allowed anymore. Instead you have to use python syntax (test should be a string btw, otherwise use _.str(test) to make it one). cheers, Christian
On Tue, 24 Oct 2000, Joaldo Junior wrote:
how to for that function REDIRECT understand a variable.
ex.
<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var test>')">
DTML tags can't be nested. Try: <dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)"> ololo@zeus.polsl.gliwice.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/
participants (6)
-
Aleksander Salwa -
cs@comlounge.net -
Daniel Rusch -
Joaldo Junior -
Phil Harris -
Rik Hoekstra