View Full Version : how to link/navigate to a target/anchor within an ajax loaded page?

08-03-2018, 10:36 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: using this script, i am unable to link to a specific place within the Ajax loaded content.

for example, in my page, test.php, i have several anchors, such as
<A name=section2></A>.

so what is the correct way of navigating to my target anchors?
this is how i'd composing the links at the moment, but i just end up with test.php loaded at the top of the window in the container, myColumn, in stead of midway down to my anchor

<a href="javascript:ajaxpage('test.php#section2', 'myColumn');">test</a>

thanks is advance