[whatwg] Targetting different anchors after submitting the form

Ric Hardacre wrote:
> Ian Hickson wrote:
>> On Mon, 6 Mar 2006, Mikko Rantalainen wrote:
>>> Perhaps something along the lines
>>>
>>> <form action="url">
>>> <input name="foo" type="submit" anchor="xfoo">
>>> <input name="bar" type="submit" anchor="xbar">
>>> </form>
>> With WF2 you can just do:
>>
>>    <form action="url">
>>     <input name="foo" type="submit" action="url#xfoo">
>>     <input name="bar" type="submit" action="url#xbar">
>>    </form>
>>
> 
> indeed:
> 
> 2.17. Extensions to the submit buttons
> 
> ...
> In some cases, authors would like to be able to submit a form to 
> different processors, using different submission methods, or not 
> replacing the form but just updating the details with new data. For this 
> reason, the following attributes may be used on submit buttons: action, 
> method, enctype, replace, and target.
> ...

I did check the spec but somehow I missed that. Thanks for pointing 
it out. I just hit the problem yesterday and I was wondering which 
kind of support for this kind of feature I should be expecting in 
the future, so I can make our internal application framework to be 
ready for it.

-- 
Mikko

Received on Tuesday, 7 March 2006 02:34:52 UTC