Solved

not allowing anchor tag to change view anchor tag

Posted on 2003-11-03
2
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
alert on input text 2 24
Allow a tab area under the contents 1 24
HTML question 2 24
How do I Enable submit button only if listbox has items 4 30
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

756 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