[whatwg] Targetting different anchors after submitting the form

Mikko Rantalainen mikko.rantalainen at peda.net
Tue Mar 7 02:34:52 PST 2006


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



More information about the whatwg mailing list