Re: Two buttons one method -
Hi, - Why are you sending this to me? I'm not the one who has a problem. - Please don't send HTML mails. - Please keep the subject so that we can find the thread you're responding to. - Your first method isn't always applicable, it's not always possible to split the form in two. - Your second method doesn't work. Florent On Mon, 2002-05-13 at 19:00, Gary Speer wrote:
Don't understand why you didn't get a helpful response.
Sounds like you are trying to pass a variable. I'm a bit new at Zope so there may be more elegant means. You can define the value of the variable in the request. Wrap the button in a form with hidden elements that have your variable name and value. The method will obtain the variables by acquisition.
<form method="post" action=<dtml-var mymethod>> <input type="hidden" name="passedvariable" value="onevalue"> <input type="submit" name="button1" value="SendWithFirstValue"> </form>
...
<form method="post" action=<dtml-var mymethod>> <input type="hidden" name="passedvariable" value="anothervalue"> <input type="submit" name="button2" value="SendWithSecondValue"> </form>
in the method, passedvariable will have the respective string.
Another is to define a global variable
<dtml-define passedvariable="global onevalue"> <a href="mymethod" img="firstbutton.gif"></a>
...
<dtml-let passedvariable="secondvalue"> <a href="mymethod" img="secondbutton.gif"></a>
Hope these trigger some ideas... Gary -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
Dear Mr. Guillaume - Pardon me for trying to help. Thank you for advising of my errors, its clear the requester and I both need to understand the software better. It appears that both of us have been appropriately chastized by your two notes. I am disappointed to see the requester still doesn't have a viable suggestion since no one is offering a solution, only criticizing our posts. As a newbie, I tried to locate a mailing list FAQ similar to those found on NNTP groups and monitor for several days so that I could learn the proper way to participate. We're obviously on the wrong mailing list. I do invite you to refer us to a place where new zope users can try to find assistance so we do not disturb your group. My apologies to you and the group. Gary ----- Original Message ----- From: "Florent Guillaume" <fg@nuxeo.com> To: "Gary Speer" <gspeer@linkline.com> Cc: <zope@zope.org> Sent: Monday, May 13, 2002 10:53 AM Subject: Re: Two buttons one method -
Hi,
- Why are you sending this to me? I'm not the one who has a problem.
- Please don't send HTML mails.
- Please keep the subject so that we can find the thread you're responding to.
- Your first method isn't always applicable, it's not always possible to split the form in two.
- Your second method doesn't work.
Florent
Please don't be overly dramatic about this. zope@zope.org is the perfect place. Just because I try to be brief and to the point doesn't mean that I have anything against you or what you say. Besides, I did propose alternative solutions. Florent On Mon, 2002-05-13 at 22:03, Gary Speer wrote:
Dear Mr. Guillaume - Pardon me for trying to help. Thank you for advising of my errors, its clear the requester and I both need to understand the software better. It appears that both of us have been appropriately chastized by your two notes. I am disappointed to see the requester still doesn't have a viable suggestion since no one is offering a solution, only criticizing our posts.
As a newbie, I tried to locate a mailing list FAQ similar to those found on NNTP groups and monitor for several days so that I could learn the proper way to participate. We're obviously on the wrong mailing list.
I do invite you to refer us to a place where new zope users can try to find assistance so we do not disturb your group. My apologies to you and the group. Gary
----- Original Message ----- From: "Florent Guillaume" <fg@nuxeo.com> To: "Gary Speer" <gspeer@linkline.com> Cc: <zope@zope.org> Sent: Monday, May 13, 2002 10:53 AM Subject: Re: Two buttons one method -
Hi,
- Why are you sending this to me? I'm not the one who has a problem.
- Please don't send HTML mails.
- Please keep the subject so that we can find the thread you're responding to.
- Your first method isn't always applicable, it's not always possible to split the form in two.
- Your second method doesn't work.
Florent
-- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
participants (2)
-
Florent Guillaume -
Gary Speer