List Info

Thread: Re: Digital Signature




Re: Digital Signature
user name
2007-01-11 18:30:28
Try setting the tab order using tabindex:=0A
<%=3D image_submit_tag( "buttons/ok.gif",
                                        :border =3D>
"0",
                                        :title =3D>
'Submit page',
                                        :id =3D>
'ok_button',
                                        :tabindex =3D>
13) %>=0A
Just make sure that your OK button is earlier in the
tabindex order than=20
the Cancel button.=0A
Here are some references:=0A
http://www.w3.org/TR/html4/interact/forms.html#h-17.11.1

http://www.htmlcodetutorial.com/forms/_INPUT_TABIND
EX.html=0A
David=0A
Kad Kerforn wrote:
>
> I am using two submit buttons within my form without
any problem, as
> specified (ht
tp://www.railsdiary.com/diary/two_submit_buttons)
>
> BUT  when the user doesn't hit a button and just hit
ENTER, I got the
> first button submit in my controller which unfortunatly
is the Cancel
> button in my view...
>
> Yes, if I change the button position (OK first in
html..) I get it.. but
> I'd like to keep my display as required by the users...
Cancel button
> must come before OK button....
>
>
> <div class=3D"submit">
>     <div>
>     <%=3D submit_tag "Cancel", {:name
=3D> "submit", :class =3D>
> "inputSubmit" }%>
>     <%=3D submit_tag "OK=EF=BF=BD", {:name
=3D> "submit", :class =3D>
"inputSubmit"}
> %>
> </div>
> </div>
>
> is ther any way to do that ?
>
> thanks a lot fyl
>=0A=0A
--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=3Den
-~----------~----~----~----~------~----~------~--~---=0A

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )