Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

not allowing anchor tag to change view anchor tag

Posted on 2003-11-03
2
Medium Priority
?
218 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 940 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

927 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