Digital Point Forums
Moneygram

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old May 31st 2005, 11:26 pm
sandeep tyagi sandeep tyagi is offline
Peon
 
Join Date: May 2005
Posts: 1
sandeep tyagi is on a distinguished road
issue regarding scrollbar position

hi
i am facing some problem while setting scrollbar position at run time in a html table.
Actually i am having a html table in which no. of row are decided at run time. if at any time on click of any button i need to show any specific row visible on the screen.can anyone help me to find out how much pixel should i down the scroll bar to show any specific position.
Reply With Quote
  #2  
Old Sep 15th 2009, 3:56 pm
gumape gumape is offline
Peon
 
Join Date: Sep 2009
Posts: 21
gumape is on a distinguished road
You must get the position of your row. If it is not in an absolutly positioned element you can ude the offsetTop property to get its exact position.

Code:
function ScrollToRow (idx) {
    var table = document.getElementById ("myTable");
    var top = table.rows[idx].offsetTop;
    document.body.scrollTop = top;
}
more info about scrollTop
__________________
Best JavasScript reference | CSS reference |
Reply With Quote
  #3  
Old Sep 17th 2009, 2:00 am
akash786 akash786 is offline
Banned
 
Join Date: Sep 2009
Posts: 55
akash786 is an unknown quantity at this point
your java script is not properly saved that why it happens or try again and get the java scrip of scroll bar again that will install the process again it will help you to get less errors.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No scrollbar on HTML drop-down? Dji-man HTML & Website Design 25 May 28th 2008 2:08 pm
can someone explain Adword's average position system wingdude Google AdWords 25 Mar 24th 2006 12:14 am
Slow invoice/credit issue geokill Optigold ISP 5 May 3rd 2005 10:05 am
Does AdSense ads depends on position? Tuning AdSense 4 Mar 13th 2005 10:03 am
deeplinks less risky than root links? Dirkjan Link Development 4 Oct 26th 2004 1:54 am


All times are GMT -8. The time now is 5:48 am.