Solved

not allowing anchor tag to change view anchor tag

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web forms being filled out by bots 4 49
Can't get js include to work in html file 8 20
Javascript the "if condition with Or" 8 29
Html Newline 7 20
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 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