Solved

navigate to a linked target on html page without page refresh

Posted on 2013-01-27
5
247 Views
Last Modified: 2013-01-27
how do I navigate to a <a> linked target on html page without having to reload php generated content. if I click on a link to a target such as 'Top of Page', it refreshes to entire page content.
0
Comment
Question by:mmarth
[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
  • 3
5 Comments
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 38824576
For this usually a hash sign is used:
<a href="#">Top of Page</a>

Open in new window

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38824584
Any element with an id can be targeted with
<a href="#someid">Go to ID</a>

There are a whole range of effects using targets


Cd&
0
 
LVL 35

Expert Comment

by:Robert Schutt
ID: 38824589
You can add target id's to your page, making it possible to link to different sections, or have it done automatically: http://www.kryogenix.org/code/browser/generated-toc/
0
 
LVL 6

Author Closing Comment

by:mmarth
ID: 38824923
my problem was that i was creating a php button which had a submit as the link. thanks
0
 
LVL 35

Expert Comment

by:Robert Schutt
ID: 38824936
Hmm, not sure how my solution helped you in that case. I assume you just made sure the "#someid" was included in the action url or redirected url from that action page.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell - Setting GPO 8 50
Google map API and Coldfsuion 4 32
Need help for active menu class depending of the page 4 30
Jquery syntax 12 30
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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?
The viewer will learn how to count occurrences of each item in an array.
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).

752 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