W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2006

[whatwg] Targetting different anchors after submitting the form

From: ROBO Design <robodesign@gmail.com>
Date: Mon, 06 Mar 2006 18:20:59 +0200
Message-ID: <op.s5z2c9prmapogm@localhost.localdomain>
Le Mon, 06 Mar 2006 18:11:11 +0200, Ric Hardacre <whatwg at cycloid.f9.co.uk>  
a ?crit:

> <form action="order_place.asp">
> <input type="submit" value="PLACE ORDER">
> <input type="submit" value="SAVE QUOTE" action="quote_add.asp#thanks">
> <input type="submit" value="RECALCULATE TOTALS" action="#here">
> </form>
> where
> the first button invokes the default form action (user hands over their  
> cash)
> the second overrides it with it's own target page (converting the user's  
> basket into a quote that they can refer to later and place as an order)
> the third submits the page back to itself (as per action="") but  
> specifies an anchor to jump to (e.g. if the basket and totaliser is at  
> the foot of the page)

At first glance I did think the third submits as if  
action="order_place.asp#here". But based on the other examples you've  
provided, maybe it's proper to have it like you said.

> as an aside, if i could go back in time i would change the original spec  
> so that the text displayed on a submit button is separate from the value  
> submitted, thus:
> <input type="submit" name="ordertype" value="sales" text="PLACE SALES  
> <input type="submit" name="ordertype" value="sample" text="PLACE SAMPLE  
> <input type="submit" name="ordertype" value="pro" text="REQUEST PRO RATA  

I did think of this quite many times.

The example you've provided is not on my taste.

<input type="submit" name="ordertype" value="sample">

Allowed child element: only a text node. Another example, maybe too  
"verbose", would be:
<input type="submit" name="ordertype" value="sample">

This would be consistent with the other inputs (label for input type  

What do you think?

ROBO Design - We bring you the future
Received on Monday, 6 March 2006 08:20:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:45 UTC