Html page scroll issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nitinkabra
    New Member
    • Nov 2012
    • 1

    Html page scroll issue

    I am working on a project in which i have to display certain data row. I am using table for that purpose.

    Here's a demo

    Now the problem is whenever i change the selection of row or scroll the current row, it goes hiding up or down . How do I fix the scroll so that it shows the current row ?
  • hemantpiliya
    New Member
    • Nov 2012
    • 1

    #2
    Please add below code in your js.
    Code:
    var globalvar;
    function newfunc(val){
    globalvar=val;			
    } 
    and also add onclick on each tr like below example.
    <tr id="42" tab_id="30" tabindex="30" class="data_row" onkeydown="keydwn(event,this.id);" onclick="newfunc(this.id);">
    Last edited by Rabbit; Nov 8 '12, 04:36 PM. Reason: Please use code tags when posting code.

    Comment

    Working...