AW: AW: [Newbee] <input type="image" ...> to switch
"Bernhard Woehrlin" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Organization | IT.CappuccinoNet.com |
| Message-ID | <000d01c437fe$e61911c0$4c01a8c0@javaws> |
Hi Alex, As far as I know just converting submit to image buttons won't solve your problem. (X)HTML Forms only can have one submit button (and one reset button)! Did you check out JavaScript to bypass this behaviour? The following solution works in Mozilla - (check out if this is true for Internet Explorer, too): <form action="#" name="myform" method="post"> .... <input type="submit" value="back" onClick="document.myform.action='back.do'"> <input type="submit" value="forward" onClick="document.myform.action='forward.do'"> </form> Greetings, Berny Had you tried JavaScript -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Alexander Bischof Gesendet: Mittwoch, 12. Mai 2004 10:31 An: [email protected] Betreff: Re: AW: [Strutscx-user] [Newbee] <input type="image" ...> to switch Hi Bernhard, >Even if it's a bit off topic: Of course you can use any HTML element within >XSL Stylesheets (hence StrutsCX). There is an image button element for >forms: > ><input type="image" src="send.gif"> > >It has the same function than the submit button. Just a hint: Consider to >use CSS to format your submit button grafically, too. Check out online >publications for details. > > Your point. I already know that this kind of HTML-element exists. The problem is that i've written a StrutsCX-application where in almost every dialog is one <input type="text"...> and three <input type="submit"...> (backward, abort, forward) in the same form. If i put something in the textfield and press enter the first of the three submit buttons executes and i go backwards through the dialogs. I've tried to fix this behavior, which means that by pressing enter the third button executes, but i wasn't successful. So i want to avoid the enter feature and convert all submit buttons to image buttons. In the abstract no problem but i've only one big BaseAction#exceute where i've decided which dialog is the next. But i think with this conversion it is a problem, because no request is send to the StrutsCX-Servlet or may i be wrong? Thanks Alex Bischof ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ Strutscx-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strutscx-user ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3