Solved

not allowing anchor tag to change view anchor tag

Posted on 2003-11-03
2
181 Views
Last Modified: 2010-04-09
I Have a table which allows users to sort the rows by clicking on the columns.
The link is defined in this way:

<TH><a href="#" onclick="TableSort('inventory1', 0, 'n')">Indent No.</a></TH>

The problem with this is if it's a large row which scrolls the page horizontally and user clicks on the column after scrolling horizontally,view comes back to the beginning of the page. I want the view to remain on the same columns as it was before clicking the heading.
       
0
Comment
Question by:anjali9189
2 Comments
 
LVL 5

Accepted Solution

by:
russellshome earned 235 total points
ID: 9669869
<TH><a href="#" onclick="TableSort('inventory1', 0, 'n');return false;">Indent No.</a></TH>

"return false" stops the following of the link which is causing your problem.
0
 

Author Comment

by:anjali9189
ID: 9669898
thanks a lot
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question