Move over the table rows using the up and down arrows using the javascript

i had a dynamically generated html table in jsp .
i need to move over the rows up and down .
when the up and down arrow keys are pressed Highlight the row and after moving when i press the enter key other required page is to be displayed .
please help me as soon as possible what events are to be used for the arrow keys and Highlight the row

i got the code for it
if (navigator.appName == "Microsoft Internet Explorer") {     
     document.onkeydown = processKeys;
} else {
     document.onkeypress = processKeys;
function processKeys(e) {  
     var keyID = (window.event) ? event.keyCode : e.keyCode;
     switch (keyID){
     // Key up.
     case 38:
          if (parseInt(currentRow) == parseInt(0)) {
               // reached the top of the table; do nothing.
               return true;
          } else {
               // move one row up.
               currentRow = parseInt(currentRow - 1);
               setCurrentRow (currentRow, currentRow + 1);
               return false;
          break;
     // Key down.
     case 40:
          if (currentRow == (numRows - 1)) {
               return true;
          } else {          
               currentRow++;
               setCurrentRow (currentRow, (currentRow - 1));
if (currentRow > VISIBLE_ROWS) {
return true;
} else {
               return false;
          break;
     // enter key     
     case 13:
          var curRowId = boardMemberListTable.rows[currentRow].id;          
          return false;
          break;
//onclick
function selectRow(row) {
     inQuad3Edit = false;
     searching = false;
     var eleTableRows = boardMemberListTable.getElementsByTagName("tr");
     for (var i = 0; i < eleTableRows.length; i++) { 
          if (eleTableRows.id != row.id){
               eleTableRows[i].className = "board-row-normal";
          } else {
               currentRow = i;          
     row.className = "board-row-sel";

Similar Messages

  • The keyboard on my macbook air has stopped working. It was fine at lunch time now the up and down arrows move the page and the left and right take me into dashboard and out. The keys beep if pressed the only way to type is to use bluetooth keyboard.

    The keyboard on my macbook air has stopped working. It was fine at lunch time now the up and down arrows move the page and the left and right take me into dashboard and out. The keys beep if pressed the only way to type is to use bluetooth keyboard.please help

    "If none of the keys work, your computer may be showing a low battery alert that you can’t see.
    Connect your computer to an electric outlet or an external keyboard to see the alert".
    http://support.apple.com/kb/PH10680
    http://support.apple.com/kb/ts1381
    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

  • Why am I recently unable to use my mouse to scroll email topics or content?  I can only use the up and down arrows keys to scroll.

    Why am I recently unable to use my mouse to scroll email topics or content?  I can only use the up and down arrows keys to scroll. I am able to use my mouse to scroll through internet searches.  It only seems to have affected my email messages.

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode - Mavericks
    Safe Mode - About

  • The scrollbar won't move when I click the up and down arrows or try to drag the bar, why is that?

    I just updated to version 4.0.1. After I updated and got the browser up again, I tried to scroll by clicking the bar and trying to drag it. This didn't work. So then I tried clicking the up and down arrows. This did not work either. The only way I am able to scroll is by using the up and down arrow keys on my keyboard.

    I just updated to version 4.0.1. After I updated and got the browser up again, I tried to scroll by clicking the bar and trying to drag it. This didn't work. So then I tried clicking the up and down arrows. This did not work either. The only way I am able to scroll is by using the up and down arrow keys on my keyboard.

  • The up and down arrows for the Finder columns are difficult to bring into view - any way to make them easier or permanent?

    Hi -
    My husband works with multi-level folders, each with way more content than will fit on the screen.  He says that he can't get the up and down arrows to show up when he is looking for a file in Finder, or wanting to move or copy files to another folder several layers up.  They will apparently show up at times, but if he isn't fast enough, they disappear before he can get his mouse over to them.  He cannot use a Magic Mouse or a touchpad, which would solve the problem with finger gestures.  He thinks this happened when I put Lion on our computers several months ago.  My own files are not so extensive, and I can use a Magic Mouse, so I haven't noticed any problem.
    Was there a change in Lion - assuming that finger gestures would replace the up and down arrows onscreen?  Is there a workaround to get this functionality back?
    Any help would be appreciated, thanks!

    Canon cameras don't play will with other FireWire devices on the same bus. You could try disconnecting the WD drive and connecting the camera directly to the computer without and capturing to the internal drive. It should be fast enough for DV.
    One probably is that your version of FCE is not supported on the version of the OS you are running. The last version I think that works with that software is 10.4.10 or earlier.

  • Recently Firefox is no longer recognizing Macro Express macros, and the up and down arrows no longer work as they should.

    The Macro Express works in all other browsers (and programs), but no longer works in Firefox.
    The up arrow and down arrow works in all other browsers, but in Firefox, instead of moving down (or up) a line at a time, the page moves way, way down (or up). The Page Up and Page Down buttons work only part of the time... if a down arrow (or up arrow) was used, the Page arrows move the page but not one page up or down...many pages up or down.
    If I need to change back to an earlier version of Firefox, I will do this. Please tell me how to make things work the way they should work.

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • The right side scroll bar on firefox no longer has an up and down arrow after my last update. I have to fix this! Please help!

    After my last update with Firefox, my right-hand scroll bar no longer has up and down arrows. I really need to get them back. I'm using a Mac laptop.

    So the whole button is missing. I have no idea how to fix the default theme, since it is inside omni.ja, which is not accessible from just any archive handler, and I have not found any way to open it. My problems were with third party themes, and I managed to fix those by editing parts of the themes.
    Maybe you could set up scrollbars yourself by using a userChrome.css file plus images. You could get some tips by opening third party themes and looking at their scrollbars.css files.
    * http://kb.mozillazine.org/UserChrome.css

  • Algorithm arranging the Sequence of Records... UP and DOWN arrow

    Is there some kind of algorithm for sequence of existing records with up and down arrows?
    Move a record up (up arrow)
    Move a record down (down arrow)
    I think i need a scrollable resultset (update query) position = ++; etc somthing like that, can someone post a algorithm or sample code (scriplet)
    Thank you in advance

    I have a database field named secuence
    Somthing is wrong with this code 10 dukes thank you in advance:
    <%
    Statement stmt3 = con.createStatement();
    String iSeq =request.getParameter("seq");
    String iID =request.getParameter("ID");
    String action=request.getParameter("action");
    if (request.getParameter("action") != null && action.equals("moveup")) {
              String sql = "update hog_evenementen " +
                        "set sequence = "+ iSeq +" - 1 where id = "+ iID +"; " +
                        "update hog_evenementen " +
                        "set sequence = (sequence + 1) where (sequence = "+ iSeq +" - 1) AND (id <> "+ iID +")";
              stmt3.executeUpdate(sql);
    } else if (request.getParameter("action") != null && action.equals("movedown")) {
              String sql = "update hog_evenementen " +
                        "set sequence = "+ iSeq +" + 1 where id = "+ iID +"; " +
                        "update tblTest " +
                        "set sequence = (sequence - 1) where (sequence = "+ iSeq +" + 1) AND (id <> "+ iID +")";
              stmt3.executeUpdate(sql);
    %>
    Links that move records up and down:
    <a href="evenement.jsp?action=moveup&id=<%=id%>&seq=<%=sequence%>"><img src="images/hog_omhoog_icon.gif" alt="Omhoog" width="12" height="14" border="0"></a></div></td>
    <a href="evenement.jsp?action=moveup&id=<%=id%>&seq=<%=sequence%>"><img src="images/hog_omlaag_icon.gif" alt="Omlaag" width="12" height="14" border="0"></a></div></td>

  • Oracle 10g and JAWS -- use of Up and Down Arrow keys

    We are in the process of converting an Oracle 6i application to 10g and applying Accessibility standards to our application so that it will work with the JAWS screen reader.
    The version of JAWS we are using is 7.10.452 Unicode, The Java Access Bridge version required is version 1.2.
    THis problem manifests itself when using the UP and Down arrow keys to move between rows in a mutli-record screen.
    The problem is that on using either the Up or Down key JAWS read the content of the current field before moving to the new record and announcing the prompt and content.
    Has any one got any solution to this.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Why does Premiere Elements 12 not react, by trying to start movie over the timeline?

    I am using Premiere 12 Elements. Sometimes it happens, today again, that Premiere does not react anymore. It does not crash, I can add Effects oder cut the film, but I can not start the movie on the timeline.
    I tried to empty the cache and sometime it helps. But it can be, that it was only accedentely, that it worked then.
    My Computerconfig:
    Intel I7 Prozessor, 8 GB RAM, 2 Gigabyte HD, Win 8.1 64 bit, AMD Radeon HD5700
    I am happy for every answer, that helps.
    Thank you

    Are you working from the 12.1 Update of 12? If not, please do so using an opened project's Help Menu/Update.
    I have the actual Update on the Computer. After I installed it about two month ago, I updated it over th Updatebutton and Premiere says to me, that I have the latest Version. My Version is 12.1 (620140 225.12.1.620828).
    What is the size of the project when the Timeline playback is not possible? Is this event associated with any particular
    added effect, title creation, or video or audio transition placement?
    What do you mean with the size of the project? If you mean the size of the videoscreensize, I can give the information, that it is a Full HD Video.
    If you mean the size of the Projectdata, it is 994 Kb.
    In this project a keymask (4 points) is used, that a video from another track is visible with the mainvideo on Track one. And there are two faders in the video, thats all. No titles and so on.
    Where are the Scratch Disks directed and how much free hard drive space is at that location?
    Did you install the program to the default Local Disk C?
    Do you mean with Scratchdisks the path to the Cache? If so, I tried different pathes. On both Disks are 700 GB free space, butit did not make a difference. I emptied the cache, schanged the pathes, emptied again, but the result was the same. No reaction.
    I installed Premiere into the default given path during the installation. And that was c:\Program Files (x86).
    Video card/graphics card up to date according to the web site of the manufacturer of the card?
    For Device Manager/Display Adapters, is AMD Radeon HD5700 the only listing?
    Yes, the Videocard is up tp date, I compared my driver Version with the Version on the Website. It is the same . And there is only one Graphic Display in the Device Manager.
    When this event happens, how are you getting out of it so that you can move on in that opened project?
    I can use the program normal anyway. I can do everything I like, but I can not start the Video over the timeline. Even if I stop the program by leaving it over the regular menu, and doing a restart of the whole computer, the result is the same. The software runs, it loads all the sourcefiles, they are placed on the tmeline and I can do everthing, but not start the video on the timeline.

  • The "up" and "down" arrows on the keybord do not work. Using them leads to "jumping anywhere", the same for pg up and pg down-keys.

    The problem is (I think), linked to the Mozilla-browser, as it doesn't occur with I.E.
    The problem persists when I use only the keybord: when using a moese, I can "wheel" up and down as usual.
    I have removed Mozilla completely and reinstalled the latest version (3.6.13).
    The problem persists.
    Can anyone help me??
    Many thanks.

    Hit the '''F7''' key, you may have inadvertently turned on Caret browsing.
    http://kb.mozillazine.org/Accessibility.browsewithcaret

  • On my desktop the up and down arrows do not work, they do work when plugged into my laptop.

    I uninstalled Firefox, deleted the folder from Win XP and custom re-installed (asking for information not be transferred) . To my surprise my bookmarks had not gone. .Neither had the problem. The up & down arrows do work on Internet Explorer (which I very rarely use).
    How can I '''totally''' remove Firefox before a clean re-install as a first step to solving the problem?

    Try hitting '''F7''' and see if that changes the action of those arrow keys.
    http://kb.mozillazine.org/Accessibility.browsewithcaret

  • The scroll up and down arrow will only jump from top of the page to bottom. will no longer slowly scroll

    the arrows on the bottom right of the keypad will only jump up and down from the top to bottom of the page. it will no longer slowly scroll up and down the page

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Up and down arrow keys are not working properly when using SQL CLI on Linux

    Every time I hit up, down, left, and right arrow keys to return to a previous sql command I got ^[[D, please any hints to fix this issue?
    The backspace works fine with me. I tried to use stty to fix this issue with no luck.
    Thanks
    Mohamed                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Which SQL client and Linux version are we talking about?
    Assuming you are using the Oracle sqlplus client... it does not support command line editing and history using the arrow keys. For this to work you will have to install a product called Readline Wrapper. See my answer at the General Database forum:
    sqlplus command line editing

  • How to stop record scrolling using up and down arrow key in forms

    Hi ,
    how we can restrict the record navigation using up & down arrow key...
    Thanks & Regards.
    vvm

    write key-up & key-down triggers at form level.
    inside that write the code
    BEGIN
      NULL;
    END;

Maybe you are looking for