Form Input Trouble

Discussion in 'HTML' started by Daniel Rudy, May 7, 2008.

  1. Daniel Rudy

    Daniel Rudy Guest

    Here's a strange one...

    <input type="image" name="menuselect" value="User Admin"
    src="/menu/icon/icon_users1.png" alt="User Admin"
    onmouseover="toolTip('<img src=/menu/icon/icon_users1.png height=32px
    width=32px align=top> Edit the user database.')" onmouseout="toolTip()">

    In the Gecko browsers (Netscape, FF, Seamonkey, Safari, Flock, etc...)
    when I click on that image, the browser submits the contents of the
    value field to the server in the post operation, along with the X,Y
    coordinate that was clicked.

    But in IE and Opera, I only get the coordinates...Is this a quirk of IE
    and Opera or what? If you just click on it, the page refreshes per the
    code...since it's looking for menuselect and not menuselect_x, menuselect_y.


    --
    Daniel Rudy

    Email address has been base64 encoded to reduce spam
    Decode email address using b64decode or uudecode -m
     
    Daniel Rudy, May 7, 2008
    #1
    1. Advertising

  2. Scripsit Daniel Rudy:

    > Here's a strange one...


    Why no URL?

    > <input type="image"


    Why? <input type="submit"> works _so_ much better. See
    http://www.cs.tut.fi/~jkorpela/forms/imagebutton.html

    > name="menuselect"


    Traditional wisdom says that the for <input type="image">, the name
    attribute should be informative, because some user agents may use its
    value in place of the image.

    > alt="User Admin"


    That's cryptic.

    > onmouseover="toolTip('<img src=/menu/icon/icon_users1.png height=32px
    > width=32px align=top> Edit the user database.')"
    > onmouseout="toolTip()">


    That's probably irrelevant to the problem at hand, but the old wisdom
    says that if an element "needs" a tooltip, the page needs redesign. If
    there's some essential information, it should be hidden in a tooltip
    that may or may not be displayed, depending on browser configuration and
    properties.

    > In the Gecko browsers (Netscape, FF, Seamonkey, Safari, Flock, etc...)
    > when I click on that image, the browser submits the contents of the
    > value field to the server in the post operation, along with the X,Y
    > coordinate that was clicked.


    That's what happens under the new interpretation of the HTML
    specification.

    > But in IE and Opera, I only get the coordinates...


    That's the old interpretation.

    > Is this a quirk of IE and Opera or what?


    No.

    > If you just click on it, the page refreshes per
    > the code...since it's looking for menuselect and not menuselect_x,
    > menuselect_y.


    Use <input type="submit">, Luke.

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
     
    Jukka K. Korpela, May 7, 2008
    #2
    1. Advertising

  3. Daniel Rudy

    Daniel Rudy Guest

    At about the time of 5/7/2008 1:19 AM, Jukka K. Korpela stated the
    following:
    > Scripsit Daniel Rudy:
    >
    >> Here's a strange one...

    >
    > Why no URL?
    >


    Because the URL is meaningless on the Internet because it's an internal
    web server.

    >> <input type="image"

    >
    > Why? <input type="submit"> works _so_ much better. See
    > http://www.cs.tut.fi/~jkorpela/forms/imagebutton.html
    >


    I know that works...I'm reading the link you posted right now.

    >> name="menuselect"

    >
    > Traditional wisdom says that the for <input type="image">, the name
    > attribute should be informative, because some user agents may use its
    > value in place of the image.
    >


    I see.

    >> alt="User Admin"

    >
    > That's cryptic.
    >


    Not in the context that this appears in.

    >> onmouseover="toolTip('<img src=/menu/icon/icon_users1.png height=32px
    >> width=32px align=top> Edit the user database.')"
    >> onmouseout="toolTip()">

    >
    > That's probably irrelevant to the problem at hand, but the old wisdom
    > says that if an element "needs" a tooltip, the page needs redesign. If
    > there's some essential information, it should be hidden in a tooltip
    > that may or may not be displayed, depending on browser configuration and
    > properties.
    >


    The tooltip was added for eye candy reasons. It's not necessary.

    >> In the Gecko browsers (Netscape, FF, Seamonkey, Safari, Flock, etc...)
    >> when I click on that image, the browser submits the contents of the
    >> value field to the server in the post operation, along with the X,Y
    >> coordinate that was clicked.

    >
    > That's what happens under the new interpretation of the HTML
    > specification.
    >
    >> But in IE and Opera, I only get the coordinates...

    >
    > That's the old interpretation.
    >
    >> Is this a quirk of IE and Opera or what?

    >
    > No.
    >
    >> If you just click on it, the page refreshes per
    >> the code...since it's looking for menuselect and not menuselect_x,
    >> menuselect_y.

    >
    > Use <input type="submit">, Luke.


    Ok. I'll read that page that you linked too, and I'll see what it says.



    --
    Daniel Rudy

    Email address has been base64 encoded to reduce spam
    Decode email address using b64decode or uudecode -m
     
    Daniel Rudy, May 9, 2008
    #3
  4. On May 8, 7:32 pm, Daniel Rudy <> wrote:
    >> Why no URL?

    > Because the URL is meaningless on the Internet because it's an internal
    > web server.


    Ok, you haven't a clue. Put your crappy code on a public server if
    you want us to look at it., We don't have time to simulate your
    problem.
     
    Travis Newbury, May 9, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hypo
    Replies:
    6
    Views:
    462
  2. Guy
    Replies:
    5
    Views:
    2,875
    brucie
    Dec 13, 2003
  3. Matt MC
    Replies:
    2
    Views:
    540
    Thomas 'PointedEars' Lahn
    May 25, 2005
  4. yawnmoth
    Replies:
    2
    Views:
    476
    Peter Flynn
    Aug 18, 2008
  5. bbxrider
    Replies:
    2
    Views:
    120
    bbxrider
    Jul 30, 2003
Loading...

Share This Page