Automatically go to another page after query results?
Hello all, Can anyone help Sheree, cause I certainly can't..., I'm still chunking away at the basics... Thanks! Here is the scenario.... (all of this is generated from a database) A user looks at the Officer info page and then clicks Modify to change the information. In the Modify page, once the user clicks Submit, the update is made and I then need to and send the user to back to the Officer info page. I've been trying RESPONSE.redirect but cannot figure out syntactically how to pass the parameters... RESPONSE.redirect('cltest?var1=<dtml-var var1in>') The above causes var1 to be equal to the actual text of <dtml-var var1in> So what I need to do is... within a dtml method I want to automatically go to another page (need to pass parameters as well) after certain steps are performed such as an update query In Cold Fusion I was able to do this using the CFLOCATION tag. Hope someone can help! Sheree Beaudette, AVP
Applications Support Analyst Banknorth Group, Commercial Services 207-828-7133 Fax: 207-756-6990 sbeaudette@banknorth.com
Hi! Try this: REQUEST['RESPONSE'].redirect('path_wanted') I hope this can help, Paula Mangas On Thu, 26 Jul 2001, Bob Campbell wrote:
Hello all, Can anyone help Sheree, cause I certainly can't..., I'm still chunking away at the basics... Thanks!
Here is the scenario.... (all of this is generated from a database)
A user looks at the Officer info page and then clicks Modify to change the information. In the Modify page, once the user clicks Submit, the update is made and I then need to and send the user to back to the Officer info page.
I've been trying RESPONSE.redirect but cannot figure out syntactically how to pass the parameters...
RESPONSE.redirect('cltest?var1=<dtml-var var1in>')
The above causes var1 to be equal to the actual text of <dtml-var var1in>
So what I need to do is... within a dtml method I want to automatically go to another page (need to pass parameters as well) after certain steps are performed such as an update query
In Cold Fusion I was able to do this using the CFLOCATION tag.
Hope someone can help!
Sheree Beaudette, AVP
Applications Support Analyst Banknorth Group, Commercial Services 207-828-7133 Fax: 207-756-6990 sbeaudette@banknorth.com
_______________________________________________ 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 )
RESPONSE.redirect('cltest?var1=<dtml-var var1in>')
<dtml-var "RESPONSE.redirect('cltest?var1='+var1in)">
The above causes var1 to be equal to the actual text of <dtml-var var1in>
You cant test dtml and it interprets the var1in as a tag. Cheers. -- Andy McKay.
[Bob Campbell]
A user looks at the Officer info page and then clicks Modify to change the information. In the Modify page, once the user clicks Submit, the update is made and I then need to and send the user to back to the Officer info page.
I've been trying RESPONSE.redirect but cannot figure out syntactically how to pass the parameters...
RESPONSE.redirect('cltest?var1=<dtml-var var1in>')
The above causes var1 to be equal to the actual text of <dtml-var var1in>
So what I need to do is... within a dtml method I want to automatically go to another page (need to pass parameters as well) after certain steps are performed such as an update query
In Cold Fusion I was able to do this using the CFLOCATION tag.
When the form is submitted, have the action (which updates your data) send the user some page. In that page's body tag, you can put <body onload='document.location.href="URL-to-go-to"'> Presto - instant redirection. Cheers, Tom P
participants (4)
-
Andy McKay -
Bob Campbell -
Paula Mangas -
Thomas B. Passin