Returning to page after updating database
Hello, I have a small problem that I cannot figure out. I display a form for editing some data. When the submit button is hitted, a method is called that first calls the SQL method for updating the database, then calls a page that I want to return to. But it never returns. How do you make a redirect ? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************
Try <dtml-call "RESPONSE.redirect('myhtmldoc')"> -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Gitte Wange Sent: Monday, April 02, 2001 9:16 AM To: zope@zope.org Subject: [Zope] Returning to page after updating database Hello, I have a small problem that I cannot figure out. I display a form for editing some data. When the submit button is hitted, a method is called that first calls the SQL method for updating the database, then calls a page that I want to return to. But it never returns. How do you make a redirect ? Regards, -- ************************ Gitte Wange Jensen System Squid Developer MMManager Aps +45 29 72 79 72 gitte@mmmanager.org ************************ _______________________________________________ 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 )
Okay that worked. Now I want to redirect to the script with some arguments. I have tried to make a redirect like this: RESPONSE.redirect("index_html?ActionList=<dtml-var ActionList>") but I keep get an error. Is there another way to do this ? Gitte On 02 Apr 2001 10:04:42 -0500, Laurie Nason wrote:
Try <dtml-call "RESPONSE.redirect('myhtmldoc')">
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Gitte Wange Sent: Monday, April 02, 2001 9:16 AM To: zope@zope.org Subject: [Zope] Returning to page after updating database
Hello, I have a small problem that I cannot figure out.
I display a form for editing some data. When the submit button is hitted, a method is called that first calls the SQL method for updating the database, then calls a page that I want to return to.
But it never returns. How do you make a redirect ?
Regards, -- ************************ Gitte Wange Jensen
System Squid Developer MMManager Aps +45 29 72 79 72
gitte@mmmanager.org ************************
_______________________________________________ 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('index_html?ActionList='+_.str(ActionList))"> ----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Laurie Nason" <laurien@tiger.3dem.bioch.bcm.tmc.edu> Cc: <zope@zope.org> Sent: Monday, April 02, 2001 4:54 PM Subject: RE: [Zope] Returning to page after updating database
Okay that worked. Now I want to redirect to the script with some arguments. I have tried to make a redirect like this: RESPONSE.redirect("index_html?ActionList=<dtml-var ActionList>") but I keep get an error.
Is there another way to do this ?
Gitte
On 02 Apr 2001 10:04:42 -0500, Laurie Nason wrote:
Try <dtml-call "RESPONSE.redirect('myhtmldoc')">
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Gitte Wange Sent: Monday, April 02, 2001 9:16 AM To: zope@zope.org Subject: [Zope] Returning to page after updating database
Hello, I have a small problem that I cannot figure out.
I display a form for editing some data. When the submit button is hitted, a method is called that first calls the SQL method for updating the database, then calls a page that I want to return to.
But it never returns. How do you make a redirect ?
Regards, -- ************************ Gitte Wange Jensen
System Squid Developer MMManager Aps +45 29 72 79 72
gitte@mmmanager.org ************************
_______________________________________________ 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 )
_______________________________________________ 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 )
But what if I want to put several variables into that URL? On 02 Apr 2001 17:01:52 +0100, Phil Harris wrote:
<dtml-call "RESPONSE.redirect('index_html?ActionList='+_.str(ActionList))">
----- Original Message ----- From: "Gitte Wange" <gitte@mmmanager.org> To: "Laurie Nason" <laurien@tiger.3dem.bioch.bcm.tmc.edu> Cc: <zope@zope.org> Sent: Monday, April 02, 2001 4:54 PM Subject: RE: [Zope] Returning to page after updating database
Okay that worked. Now I want to redirect to the script with some arguments. I have tried to make a redirect like this: RESPONSE.redirect("index_html?ActionList=<dtml-var ActionList>") but I keep get an error.
Is there another way to do this ?
Gitte
On 02 Apr 2001 10:04:42 -0500, Laurie Nason wrote:
Try <dtml-call "RESPONSE.redirect('myhtmldoc')">
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Gitte Wange Sent: Monday, April 02, 2001 9:16 AM To: zope@zope.org Subject: [Zope] Returning to page after updating database
Hello, I have a small problem that I cannot figure out.
I display a form for editing some data. When the submit button is hitted, a method is called that first calls the SQL method for updating the database, then calls a page that I want to return to.
But it never returns. How do you make a redirect ?
Regards, -- ************************ Gitte Wange Jensen
System Squid Developer MMManager Aps +45 29 72 79 72
gitte@mmmanager.org ************************
_______________________________________________ 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 )
_______________________________________________ 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)
-
Gitte Wange -
Laurie Nason -
Phil Harris