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

2 replies for this story:

Peter Kruty wrote: funnny

Stupid MSIE, die already. .... this made me laugh :).

mirka wrote: finally

Stupid MSIE, die, finally Stupid MSIE, you're dead already, go away ?

Reply to this story:

 
Name:
URL/Email: [http://... or mailto:you@wherever] (optional)
Title: (optional)
Comments:
Key image: key image (valid for an hour only)
Key value: (to verify you are not a bot)

About:

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

Links:

RSS feed

Jan "Yenya" Kasprzak

The main page of this blog

Categories:

Archive:

Blog roll:

alphabetically :-)