cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <>
Subject RE: [PROPOSAL] cocoon-action
Date Thu, 14 Feb 2002 15:25:18 GMT
On Thu, 14 Feb 2002, Carsten Ziegeler wrote:

> Hm,
> why don't you use a hidden input field in your form instead
> of using the submit button?
> <input type="hidden" name="cocoon-action" value="Add"/>
> This is language independent and submit button text independent
> and works.

This is not sufficient. What's up when you have more than one submit
buttons i one form? ...all you *could* (but don't want to) do is to change
the hidden inputs with javascript. How would to do this with hidden inputs

     <input type="submit" name="cocoon-action-Add" value="Add">
     <input type="submit" name="cocoon-action-Delete" value="Delete">

As soon as you insert a hidden input for the action selection you form is
tied to one action

To unsubscribe, e-mail:
For additional commands, email:

View raw message