Click here to get back home

push button ??

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
push button ?? Chris Sharman 08-03-2006
Get Chitika Premium
Posted by Chris Sharman on August 3, 2006, 5:50 am
Please log in for more thread options


I found a use for a (push) button the other day - having never wanted it
before. I used button rather than input type=button, because I wanted to
use an image for it.

The html4 spec doesn't say anything explicit, though, about how/whether
it gets submitted with the other 'successful controls'.

In practice, using push buttons within a form, with name and value
attributes, and some content (an image):
Firefox doesn't submit it.
ie6 submits the content (the html image tag), not the value.

I was kind of hoping for the value, since I went to some trouble to set
it within the javascript.

Given that it doesn't seem to do what I want, or anything consistent, in
the popular browsers, I'll find another way of doing it at this point.

However, I did wonder if anyone could clarify the 'correct' behaviour,
whether any browsers implement it, and whether this is a known bug.

Chris

Posted by David Dorward on August 3, 2006, 6:23 am
Please log in for more thread options


Chris Sharman wrote:
> I found a use for a (push) button the other day - having never wanted it
> before. I used button rather than input type=button, because I wanted to
> use an image for it.
>
> The html4 spec doesn't say anything explicit, though, about how/whether
> it gets submitted with the other 'successful controls'.

Well, if it is <button type="submit"> then it should.

> In practice, using push buttons within a form, with name and value
> attributes, and some content (an image):
> Firefox doesn't submit it.
> ie6 submits the content (the html image tag), not the value.

Yes, this is a known bug in IE and the reason the <button> element in
uncommon on the WWW.


Posted by axlq on August 7, 2006, 10:48 am
Please log in for more thread options


>I found a use for a (push) button the other day - having never wanted it
>before. I used button rather than input type=button, because I wanted to
>use an image for it.

I'll sometimes use a text box styled to look like a pushbutton, with
a link in it. Either that or an <input type=submit > button.

-A

Similar ThreadsPosted
forms: push button on "enter" July 26, 2007, 12:31 am
How to push elements to the bottom August 21, 2007, 6:07 am
CSS for a mac button September 21, 2005, 10:23 am
JPG needs refresh button to appear September 13, 2004, 4:21 pm
JPG needs refresh button to appear September 13, 2004, 4:21 pm
What is upload button for Mac? February 21, 2005, 1:11 pm
Button-hyperlink. July 6, 2005, 1:15 pm
Button on the same line. July 20, 2005, 12:48 pm
can button show something other than value? August 31, 2005, 11:56 am
Ugly button May 4, 2006, 7:08 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap