Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

hyperlink - dont want it to move to top of page

Posted on 2011-04-26
2
Medium Priority
?
206 Views
Last Modified: 2012-08-14
Hi,

I am showing rows of records.
I want to be able to click on a hyperlinked edit image for a particular row and want the row to be changed to a form entry via ajax. I am encountering it such that the row changed to a form entry but the page goes to the top... I had to scroll down back to the row in order to do editing.

Is it possible to do it such that it will not move up to the top but rather remain at that row and if possible to set focus on a edited field?

what sort of <a href.. type of coding should I use to prevent moving to top?

Thanks.
0
Comment
Question by:LimMH
2 Comments
 
LVL 22

Accepted Solution

by:
remorina earned 2000 total points
ID: 35472432
You can use the below
<a href="#" onclick="return false;">Will Not Move Up</a>

Open in new window

0
 

Author Closing Comment

by:LimMH
ID: 35472447
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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. …
This article discusses four methods for overlaying images in a container on a web page
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

571 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