PDA

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



rafael
08-03-2018, 10:39 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'm composing the links at the moment, with the anchor referenced immediately after the hashtag.


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

but i just end up with test.php loaded at the top of the window in the container, myColumn, instead of midway down to my anchors

thanks is advance