cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [PROPOSAL] cocoon-action
Date Thu, 14 Feb 2002 15:42:07 GMT
> Torsten Curdt wrote:
>
> 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
>
>   <form>
>      <input type="submit" name="cocoon-action-Add" value="Add">
>      <input type="submit" name="cocoon-action-Delete" value="Delete">
>   </form>
>
> As soon as you insert a hidden input for the action selection you form is
> tied to one action

Yes, that's true. Sorry, I didn't think of forms with multiple submit
buttons.

Carsten


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message