Click here to get back home

trying to understand the BUTTON tag in EXPLORER and MOZILLA

 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
trying to understand the BUTTON tag in EXPLORER and MOZILLA joesplink 08-27-2005
Get Chitika Premium
Posted by joesplink on August 27, 2005, 5:12 pm
Please log in for more thread options


I created a form using buttons, for example

<BUTTON type="submit" name="PBUTTON" value="Sign In">Sign In</BUTTON>

and this worked OK when I tested the site using the MOZILLA browser,
but, when I use the AOL EXPLORER browser, when I get the value of the
button, I don't get "Sign In" I get "submit".

So,the button behaves differently depending on the browser? Also, I
want to be able to get the value of the value attribute.. like it works
in MOZILLA .... even with EXPLORER ... how to ??????

TIA,
Joe


Posted by Jukka K. Korpela on August 28, 2005, 9:35 am
Please log in for more thread options


joesplink wrote:

> I created a form using buttons, for example
>
> <BUTTON type="submit" name="PBUTTON" value="Sign In">Sign In</BUTTON>

Use <input type="submit" name="PBUTTON" value="Sign In"> instead.

> and this worked OK when I tested the site using the MOZILLA browser,
> but, when I use the AOL EXPLORER browser, when I get the value of the
> button, I don't get "Sign In" I get "submit".
>
> So,the button behaves differently depending on the browser?

Exactly. So use <input ...> instead.

It's not just AOL EXPLORER. It's also Internet Explorer that has a
completely broken implementation of <button>.

On the other hand, don't rely on getting the name=value pair even when
using <input ...>. You don't need it if you have just one submit button.
And if you have multiple submit buttons, things are rather unpredictable
when someone submits the form by pressing Enter in a text input field.

Posted by joesplink on August 28, 2005, 4:57 pm
Please log in for more thread options


Thanks. I have switched to <INPUT type=submit tags and so far so good.
It's necessary for me to have two buttons, one for 'submitting' and
one for 'aborting' .... what can be done if <INPUT type=submit Name
Value pairs have problems??????


Posted by Jim Moe on August 28, 2005, 9:29 pm
Please log in for more thread options


joesplink wrote:
> .... what can be done if <INPUT type=submit Name
> Value pairs have problems??????
>
How can name/value pairs have problems?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Similar ThreadsPosted
Button Element and Internet Explorer 6.0 August 3, 2004, 8:24 am
"Submit" button is not functioning in Mozilla April 16, 2007, 7:41 pm
Table width is broken when using back button in Internet Explorer July 28, 2005, 6:05 am
button element in Internet Explorer has too much left/right space when its text is long November 3, 2005, 7:09 am
Do not understand validation info April 7, 2006, 2:33 am
Does Firefox not understand COLGROUP and COL? June 6, 2006, 2:05 pm
tings that I don't understand [was: special pop-up] October 10, 2007, 5:13 pm
Alt attribute I understand. Title/summary attributes - used for what? June 8, 2005, 10:58 am
Internet Explorer Bug? May 22, 2006, 6:05 pm
css & internet explorer January 10, 2008, 4:55 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap