The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dynamic Content script interfering with standard anchor link functionality

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #31405

    Anyone care to help me out here? I’m no expert at JS, so I was happy to find the dynamic content script for AJAX dynamic content at The only issue now is I want to have in-page navigation similar to this with links to anchor tags: When I don’t have the custom dynamicpage.js included, links to anchors work fine. When I include the script, the content jumps to the anchor then fades out. Would there be a way to accommodate anchor links within a page’s content which works as usual (i.e., not being modified by dynamicpage.js)?

    Thanks for any help,



    My first thought is to execute only links which are in the main menu and ignore other hashes.

    Something like:

    if(newHash && $('nav a[href="'+newHash+'.php"]').length > 0){
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.