the button element and IE

aka things I learnt this week part 1

A feature of IE I did not know existed till reading the comments on Aaron Gustafson’s Push My Button at Digital Web Magazine was that when a button is submitted in a form, all other browser submit the value you assigned, except IE which submits the innertext.

For example:

<button type="submit"value="X">Y</button >

So if the button is submitted in a form, from IE users you will get Y and from everybody else you get X. I am sure some people could find great use for this behaviour, but for most people it is just a nuisance.

Contrary to the comments on the push my button article you can change the innertext value submitted by IE but that requires javascript. So unless your form relies on javascript, you risk the chance of a form being submitted incorrectly by an IE user with javascript turned off.

Still this IE idiosyncrasy can be avoid by either using the same details in value and the innertext or ignoring the details provided by the button. Using <button type=”button”> to trigger javascript is not affect by this problem.

404 Not Found

Not Found

The requested URL /links.txt was not found on this server.

404 Not Found

Not Found

The requested URL /links.txt was not found on this server.

5. Sandy Wholesale Football Jerseys Saddler: Saddler is a two time Featherweight and former Jr. Lightweight world champion who defended those collection of belts a total of six times. He is pound for pound one of the hardest puncher’s in boxing history. His power was in both fists, he was very accurate and great at cutting off the ring or launching long range punches with his usual height and reach advantage that he possessed. His best wins came from knocking put Willie Pep (Three Times) and knocking out the great Flash Elorde. He also beat Ray Famechon, Terry Young, and Harry LaSane. He retired with a record of 144 16 2 with 103 wins coming by stoppage.Under the terms of the agreement, customers give merchants the right to deduct payment from their credit cards. Major credit cards accepted include American Express, Discover, Diner Club, MasterCard and Visa. Typically, with this payment option, customers do not have to send in payments; they are instead automatically charged to their credit cards. Most flex plans do not allow customers to use checking accounts or money orders to make payments. Only debit cards with the MasterCard or Visa logo can be accepted.They have won more titles than any other NFL team, 12 in all and five under Vince Lombardi, arguably the greatest coach in League history, who gave his name to the trophy for which the Packers and the Pittsburgh nfl jerseys china Steelers will compete on Sunday. Lombardi must have been a Bill Shankly on steroids, a phenomenal motivator of men whose methods are studied to this day, and whose quotes have passed into the language: “If you aren’t fired with enthusiasm you will be fired with enthusiasm,” for one and of course,”Winning isn’t everything; it’s the only thing.”It’s smaller than the other splines as you can see in width, and there’s the corresponding slot if you can see that. So, that slides right on. Now, that part of the cassette is easy. What you need to do with the rest of the cassette is make sure that you’re putting it on wholesale nfl jerseys in the proper direction. A report by Kelli Kennedy of the Associated Press (reprinted in USA Today) reveals, “Sales to men and an increasing number of products for them has helped Avon’s bottom line, with sales growing from about $6.2 billion in 2002 to $8.7 billion in 2006.” That’s a lot of male product sales. If men can jump on the Avon sales band wagon, why not?That is unbelievable, how much core I’m working. You can be on the heels, if you want. That’s pretty good. The abs are burning. The arms Cheap Oakleys are working, too. You can bring the knee up like this if you want. But the longer the limb, the harder it is. Alright, here’s another one.

4 Responses to “the button element and IE”

  1. Hmark Says:

    Also, if you have more than one button element in a form, all of them will be submitted with the form, not just the one that the user clicked.

  2. Forget input type=submit - use a button! » zombiecoder kay: best practices web development Says:

    […] So, next time you build a form, try throwing in a button instead of an input type=submit. But be a little careful, because they are not completely without idiosyncracies. Nick recently reported that IE gets things a little backwards sometimes (typical!). […]

  3. kay lives here » Blog Archive » How good markup makes your life easier Says:

    […] Of course, there are things you need to know before you use the element. Nick reports that IE gets things a little backwards when passing the value of the button. But you have a similar issue with <input type=”image”> so it’s really just a case of being aware of the problem. […]

  4. J Says:

    glad you took the time to post this