Solved

not allowing anchor tag to change view anchor tag

Posted on 2003-11-03
2
162 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now