Marek Mänd <cador.soft (AT) mail (DOT) ee> wrote:
Quote:
Then there's hardly any point in using <button>, instead of <input
type="image">.
Well IMHO there could be some advantages: |
You should consider the sure disadvantages first.
Quote:
Consider situation:
a saved pure html page without images and without stylesheets |
Is this about authoring for the WWW, which is the topic in
comp.infosystems.
www.authoring groups? Well, maybe, as long as you
consider how to make pages that work on the WWW without images and style
sheets too. (How about working without JavaScript?)
Quote:
button type="button"><img src="unexistant"><span
style="display:none">commandbutton spare label for offsite
use</span></button
would perform better than a <input type="image" src="unavailable"
with a tooltip. |
No reason to mess around with tooltips.
They both perform worse than <input type="submit">.
And <input type="image"> works on most browsers if you specify adequately
the attributes that might be used as textual replacements for the image
(alt, name, value).
Quote:
Besides tooltips everywhere in the document can be
quite frustrating. |
I did not mention any tooltips. Where did _you_ get the idea of putting
them everywhere?
Quote:
I am against flashy title
tooltips, there is a status bar for that. |
No it isn't. The status bar is for the browser to show the status.
Disturbing that classifies a page as nerdishly childish.
Quote:
Sadly <input type="image"> is by constitution about submitting form,
not as <button type="button">... |
You didn't mention what kind of a button you have. On the WWW, it is best
to try and make all buttons submit buttons so that you can have a server-
side backup, even if you normally use client-side scripting for the
actions invoked by the buttons. If that's not feasible, make them look as
much like normal default-style buttons as possible. And that's quite
possible: you simply use <input type="button">, naturally in code that
has been generated by client-side JavaScript code and with an explanation
in a <noscript> element, to avoid frustrating users that are using
JavaScript-disabled browsers. The key point is to do nothing in order to
change the appearance, to maximize the odds that people understand
buttons as buttons and not as fancy decoration or something.
Quote:
Yes it can be WAd via JS, but thats
overhead. |
Yr abbrs r probly bout something off-topic.
Quote:
Well those images for buttons would actually be different in web
application, thus for earch image a style class is too much. As icons
are much easily to be changed in serverside scripting templates than
in CSS (which just adds too much complexiti and dependancies) |
Sorry, that does not parse either. If you had originally posted a URL
that demonstrates the context and problem, maybe some specific advice
could have been given.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/