473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

push button ??

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
Aug 3 '06 #1
2 1917
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 <buttonelement in
uncommon on the WWW.

Aug 3 '06 #2
In article <ea*******************@news.demon.co.uk>,
Chris Sharman <ch***********@sorry.nospamwrote:
>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
Aug 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: PHP2 | last post by:
how create small program that push some button automaticaly (every 9 mins) for Linux with C++? any fast advices?
0
by: JR | last post by:
Hello, Although I consider myself a proficient C++ programmer (and am getting better everyday at C# :-) I am new to and having a little trouble with some of the concepts behind ASP and ASP.NET....
0
by: bala murugan via .NET 247 | last post by:
(Type your message here) -------------------------------- From: bala murugan hi, i am using DataGrid in my project , so, i would like to change the DataGrid Edit Button Properities to Push...
0
by: Ryan Liu | last post by:
Hi, Can someone tell me how to push dropdownarrows by code for a dropdown button so the menuitems can show up? The button itself does nothing, I am avoiding telling my user "Hey, you...
4
by: Marcpp | last post by:
Hi I need to call a widget from a button in WXPYTHON. I've tried to this from a function like this, but when push the button, the program opens a window and do error. Any idea? ...... def...
4
by: John | last post by:
I have a form with 5 buttons, each of them executing code and showing a different report. I would like to add a 6th button 'total' that opens all 5 reports in a row (next report opens when other is...
1
by: Jon Todd | last post by:
Happy holidays all! I'm developing an application and, as a relative newbie to Python, have come across a stumbling block with Tkinter. I'd like to have a button that when pressed executes a...
5
by: andersond | last post by:
I probably didn't ask the question right; but, I have a webpage where agents are entering information about trucks they want insured. I want to break out of a function when a button push occurs. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.