I think the problem was that it doesn't matter which button is pushed both 
get_merges and plot_merges are always returned.

You could alternatively have 2 submit buttons with the same name and 
different values and check the values no?

On Tue, 3 Apr 2007, askel wrote:

>
> if 'get_merges' in request.params:
>  get_merges()
> elif 'plot_merges' in request.params:
>  plot_merges()
> else:
>  # initial form request
>
> On Apr 3, 3:55 pm, "ben adam" <[EMAIL PROTECTED]> wrote:
>> This is what i have in my template:
>>
>> <input class="submit" name="get_merges" type="submit" value="  Get
>> Merges  " />
>> <input class="submit" name="plot_merges" type="submit" value="  Plot
>> Merges  " />
>>
>> browser is firefox.
>>
>> Thanks.
>>
>> On Apr 3, 12:19 pm, Rick Flosi <[EMAIL PROTECTED]> wrote:
>>
>>> Are you using <button> or <input type="submit"> ?
>>> And what browser are you using?
>>> I'd seen this problem using <button> with IE in the past.
>>
>>> On Tue, 3 Apr 2007, ben adam wrote:
>>
>>>> How can I tell in a controller which submit button was pressed? When I
>>>> check request.params I see name/values for all the submit buttons (not
>>>> just the one I pressed).
>>
>>>> Thanks.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to