Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: help : submit with javascript problem

Rick Reumann

2004-10-10

Replies:

I often use the regular html buttons for various things. Users are used
to seeing these buttons so they know they can click on them. So for
example someone might have a button "view logs" which doesn't
necessarily submit a form but opens up a pop up window or maybe goes to
some other url. Sure you can make images in place of all standard html
buttons but that that certainly isn't required or necessarily even
always better. You asked with what seemed like a suprised question "Why
use an button?" and I'd answer that's what html buttons are for - for
users to click on. (Actually when you change their background color form
the default gray, they don't even look that bad - although I do realize
custom images used as buttons do look the best.)


Michael McGrady wrote the following on 10/10/2004 8:56 PM:
> Hi, RIck,
>
>
> I don't understand why this would make someone "make an image look like
> a form button". I am not sure what that means. All my form buttons are
> images. They look however I want them to look. I probably don't see
> what you are saying either. We may be coming from different directions
> and are passing in the night here.
>
>
> My understanding is that you use an <input type='button'> primarily to
> do things other than submit. I was not particularly set on <input
> type='image'>. Why too is he not using <input type='submit'>? I assume
> there is an answer to this, but I cannot see it in the posts. So, I
> asked the question.
>
> Michael McGrady
>
> Rick Reumann wrote:
>
>> Michael McGrady wrote the following on 10/10/2004 4:42 PM:
>>
>>> Wjau are you using button? Why not use image?
>>
>>
>>
>> What's the advantage of using an image in this case? Wouldn't this
>> require someone to make an image to look like a form button? I'm
>> probably missing something obvious here:)
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>


--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.