Yenya's World

Fri, 03 Apr 2009

HTML <button> Tag

So I wanted to upgrade the form we use in IS MU in many places for selecting a printer, splitting the "print" and "download PDF" functionality to separate buttons. The problem is how to make it as backward-compatible as possible.

I basically wanted to have two buttons with the same name="..." attribute, and distinguish between them by their value="..." attribute. I have came across the cool new (for me anyway :-) HTML tag <button>, which does exactly what I want. I am able to use my own machine-readable value="...", and put the button label (localized) inside the <button>...</button>.

Except that it does not work in MSIE. That parody of a browser does not send back the value="..." attribute contents, but rather inner text of the <button> tag for all buttons in the form, not just for the actually clicked one. Stupid MSIE, die already.

Section: /computers (RSS feed) | Permanent link | 2 writebacks


Yenya's World: Linux and beyond - Yenya's blog.


RSS feed

Jan "Yenya" Kasprzak

The main page of this blog



Blog roll:

alphabetically :-)