At 11:16 AM -0700 5/28/03, Josh McCulloch wrote:
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the <button/> tag in HTML 4.0? I just found it listed in "Web Design In A Nutshell".
To quote, "Defines a 'button' that functions similar to buttons created with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images." These buttons can function as if it were a <input type="button/submit/reset">,
but you can embed an image within the button (I might want to use it for displaying accessKeys on buttons _S_ave).


Should there be a html: tag to deal with this tag? Is this still part of the specification?

There only needs to be a tag-library tag if you need to dynamically change the attribute values of the tag as it is rendered. I haven't used <button> much, so nothing comes to mind; I always thought you used it when you wanted some arbitrary javascript triggered without having to deal with the added semantics of a submit or reset button.


I guess if you wanted the label of the button to be looked up from a Struts message resources bundle, that would be a justification. If you find yourself needing it, why not take a shot at writing the class yourself? My first (modest) contribution to the Struts package was the tag handler for HTML frames. I pretty much just checked out the source code and copied from existing stuff -- it's easier than you might think.

By the way, I have since vigorously sworn off using frames in all cases -- but when you can't convince the client that frames are evil, you sometimes need the <html:frame> tag...

Joe

--
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "If nature worked that way, the universe would crash all the time." --Jaron Lanier


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to