[Zope] What button submitted
Axel Missbach
Axel.Missbach@t-online.de
Thu, 08 Mar 2001 12:26:56 +0100
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------6F8394E4791C690F0EB4F7A3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Zope Version:Zope 2.3.0(binary release, python1.5.2, linux-2-x86)
Python Version: 1.5.2(#10 Dec 6 1992, 12:16:27)(GCC 2.7.2.3)
System Platform: linux2
Suse linux 7.0(i386), Kernel 2.2.16
Apache 1.3.12
the REQUEST-content: see attachment
(New, Print, Edit, Del, Close are the buttons)
Peter Bengtsson wrote:
>
> You got to be kidding!
> <form action=process>
> <input name=button1 type=submit value="Button 1">
> <input name=button2 type=submit value="Button 2">
> </form>
>
> You are saying that when a form like this is processed, you can see both
> buttons in the REQUEST!
> Sounds like bug, because I know that only one should been seen in <dtml-var
> REQUEST>
>
> Z version? OS? Proxypass? Apache?
>
> ----- Original Message -----
> From: "Axel Missbach" <Axel.Missbach@t-online.de>
> To: <zope@zope.org>
> Sent: Thursday, March 08, 2001 9:33 AM
> Subject: [Zope] What button submitted
>
> > Hi,
> >
> > having a form with some buttons.(Add, Edit, Del...). Every button shoulg
> > call the same form, wich one should handle the diffrent button-methods.
> > Please tell me a way how to get to know which button is pressed. Every
> > button is in the REQUEST, but i can't see, which one is the caller.
> >
> > I have looked in the Source of the manageform with the Rename Cut, Copy
> > ... buttons. This ones changes the actionmethod, but where is the method
> > they calling (e.g. manage_cutObjects)
> >
> > witg regards Axel
> >
> > _______________________________________________
> > 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 )
--------------6F8394E4791C690F0EB4F7A3
Content-Type: text/html; charset=us-ascii;
name="Zope on server_firma.htm"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Zope on server_firma.htm"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0025)http://server:8080/manage -->
<HTML><HEAD><TITLE>Zope on server.firma</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<SCRIPT type=text/javascript>
<!--
function update_menu() {
window.manage_menu.location.href=window.manage_menu.location.href;
}
//-->
</SCRIPT>
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD><FRAMESET
rows="34, *"><FRAME name=manage_top_frame marginHeight=0
src="Zope on server_firma-Dateien/manage_top_frame.htm" scrolling=no><FRAMESET
cols=175,*><FRAME name=manage_menu marginWidth=2 marginHeight=2
src="Zope on server_firma-Dateien/manage_menu.htm"><FRAME name=manage_main
marginWidth=2 marginHeight=2
src="Zope on server_firma-Dateien/ButtonHandler.htm"></FRAMESET></FRAMESET></HTML>
--------------6F8394E4791C690F0EB4F7A3--