Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > Oracle Database, SQL, Application, Programming


Add hot keys to your forms


Reply
Views: 1320  
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.
  #1  
Old 08-10-2010, 03:57 PM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 4,977
Default Add hot keys to your forms

Are you used to being able to jump from one field to another using hot keys in your regular programs? Now you can add the same functionality to your web page forms to make it easier for your visitors to move between fields.
If you're using Explorer 4.x, you can hit the ALT key and the underlined character of the field title to jump to that field; for example hit ALT+E to get to the email field, ALT+P to get to the password field or ALT+N to get to the user name field.




So how does it work? Let's say you have an input field on your web form called "User Name." To assign ALT+N as its hotkey,
  1. Wrap your field label ("User Name") tags as follows.



    ACCESSKEY parameter should be set to the letter that's combined with the ALT key to create the hotkey (N in this case).
    FOR parameter is the ID of the field that should be highlighted when the hotkey is pressed.

  2. Add ID parameter to your field tag (to theto the tag for example).

    ID should match the name you used in the FOR parameter of the
  3. Optionally use and tags to underline the hotletter in the field label. For example to underline N in the field label "User Name"
    User Name

Here's how the complete HTML tags for the above example should look like.



Reply With Quote
Reply

Tags
website tips

New topics in Oracle Database, SQL, Application, Programming





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)