Hi!!

I have problems with several submit buttons too -  a question - the
attribute accesskey in the html:submit tag - is it possible to use it to
somehow move focus a certain submit button in the form so this submit
button's action will be executed if you press enter? Has anybody tried this?

/ Linnéa



----- Original Message -----
From: "Andrew B Forman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 3:13 PM
Subject: RE: two submit buttons


> Hi Mur,
>
> there are two possible diagnosies i see:
>
> one: Internet Explorer automatically selects the
> first submit when the user hits enter
> (Netscape doesn't).  Mostly likely what you
> would want to do is intercept the enter key.
> (
>
http://faqchest.dynhost.com/msdn/IE-HTML/script-99/script-9907/script9907290
> 5_17902.html )
> ( see Intercept keyCode 13 )
>
> two: a little known addition to html 2.0
> was that if you have a form with one input
> type=text hitting enter will submit the
> form without going through the submit
> button.
> ( http://ppewww.ph.gla.ac.uk/%7Eflavell/www/formquestion.html )
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 10, 2002 10:37 AM
> > To: Struts Users Mailing List
> > Subject: two submit buttons
> >
> >
> >
> >
> > Hi all,
> > I have two submit image in my JSP . when  the user presses the
> > 'ENTER' key the
> > first occurance of the Submit button in my JSP gets invoked. This
> > leads to a
> > problem as my first submit button is a previous button and next
> > is the submit
> > button. I cannot change the sequence of button on the jsp as it
> > directly affects
> > the view.
> > Can anybody suggest me how to handle this problem
> > This could be of some help
> > <html:submitimage styleKey="style.Button" pageKey="image.PreviousButton"
> > onclick="return previous();"/>
> > <html:submitimage styleKey="style.Button" pageKey="image.SubmitButton"
> > onclick="return Confirm();"/>
> > Thanks in advance
> > Regards
> > Mur.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>

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

Reply via email to