Dean A. Hoover wrote:

Michael,

Sure. Basically I want to do the same thing you are apparently questing for:
the ability to replace standard browser buttons with images. I have an application
that I want to retrofit to this, and I have used LookupDispatchAction and other
approaches in it. I have a wizard (workflow) type of process in it that requires,
next, previous, finish buttons in it. Cancel buttons are on all of the forms. And,
I have a file upload page, that was my purpose in launching this thread. I've
been reading what you've proposed for image buttons, along with what others
say in general.


I use DynaValidatorForm in most places. One thing I find a little odd is the
usage of <html:cancel>. There are several forms in my application where
I don't want to validate if a certain button is pressed but it does not mean
cancel. I still need to take some action. For example, in the wizard form
set I spoke of previously, say you are on page 2 of the 5 page set. There
are three buttons on the form: Previous, Next, and Cancel. If the user
hits next, I want to validate. If the user hits cancel, I don't want to validate
so I hit the cancel method. The wierd case is when the user hits Previous.
The way I have it right now, it validates the current page before going back
one page. I'd really like it to go the previous page without validating the
current page. I am reading the source code for Action, DispatchAction,
and LookupDispatchAction to determine how best to do this.


Anyway, back to your request for teaming up. I'll do what I can. Can you
share what you've discovered so far?

Dean Hoover

Hi, Dean,

I am a pretty meat and potatoes kind of genius. I need to solve one thing at a time. So, right now I am going to stick with only the image deal with file uploads. I have the following which works okay with IE but not with Mozilla.

<form method='get' action='display_none.jsp'>
       <input type=file
              name='file1'
              size='15'
              class='walter'
              style='display: none;'>
       <br>

       <input type='text'
              name='file2'
              id='file2'>

       <img src='up.gif'
            name='brower'
            id='brower'
            width='83' height='24' border='0'
            alt=''
            align='absmiddle'
            onclick='document.all.file1.click();
            document.all.file2.value=document.all.file1.value'
            onMouseDown='this.src="down.gif"'
            onMouseUp='this.src="up.gif"'
            onMouseOut='this.src="up.gif"'>
</form>

Michaelmcgrady



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



Reply via email to