On 5/17/07, The Editor <[EMAIL PROTECTED]> wrote:
> On 5/17/07, Ben Stallings <[EMAIL PROTECTED]> wrote:
> > noskule wrote:
> > > Is there a way/example for a cancel button? The cancel button should not
> > > touch the datapage but use "nextpage"  to return to the basepage.
> >
> > Does it have to be a button?  Since it doesn't submit any data, a simple
> > link would be more appropriate and a lot less work to implement.  You
> > could use an image to make it look like a button if that were important,
> > but the behavior you're looking for is not button behavior.  --Ben
>
>
> Good point Ben. Still it would only be one line in ZAP to get what
> noskule is wanting, and it could be kind of cool...
>
> I'm not too keen on phony image buttons.  They don't click right!
>
> On the other hand the problem is an extremely irritating one in html.
> How do I assign a button a POST value that differs from the display
> value. In this case I would want the abort button to have a value of
> some nextpage page in the POST value, but would want to show cancel in
> the button display. Is there anyway to do this?
>
> Cheers,
> Dan


To answer my own question, I suppose I could try this:

(:input submit name=cancel value=Cancel:)

Then just check for the field name cancel and that it's value is
Cancel to trigger the action. But then would I want a separate
cancelnextpage variable to control where they are forwarded to on
cancel, just return to the current page, go to the nextpage setting of
the form... options options.

Cheers,
Dan

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to