Form Input Trouble

D

Daniel Rudy

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.
 
J

Jukka K. Korpela

Scripsit Daniel Rudy:
Here's a strange one...

Why no URL?
<input type="image"

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.
 
D

Daniel Rudy

At about the time of 5/7/2008 1:19 AM, Jukka K. Korpela stated the
following:
Scripsit Daniel Rudy:


Why no URL?

Because the URL is meaningless on the Internet because it's an internal
web server.
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.
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.
That's cryptic.

Not in the context that this appears in.
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.
That's what happens under the new interpretation of the HTML
specification.


That's the old interpretation.


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

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

Travis Newbury

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top