Generating sitemap pages from within a javacript function

by Chris Pettet   Last Updated May 13, 2015 14:01 PM

I'm not quite sure how to explain this but I'll give it my best shot.

I have a site which has a header, sidebar and content divs. In the sidebar I have links which load a page into the content div by calling a piece of javascript code, loadPage('.php'). The page is always loaded into the correct div but when I try to create a sitemap, these pages are not being found.

If I remove the javascript function and call the page directly, the page doesn't load into the contents div (even naming the div and using "target=") but the sitemap creator discovers the page as it's a page link rather than a function link I guess.

My question is, how do I get the sitemap to recognize the page being loaded by the function OR how do I send the output to the div without the use of iframes?

Sorry if this is not well explained, if you need more detail, let me know.

One thing I had thought of is to add a duplicate href with display:hidden style to allow the sitemap to be generated whilst maintaining the loadPage function for the actual links, but surely this would be overkill?

Thank you in anticipation...



Related Questions


Updated June 05, 2016 08:01 AM

Updated November 29, 2018 18:04 PM

Updated August 28, 2019 17:04 PM

Updated April 07, 2016 08:01 AM

Updated July 06, 2016 09:01 AM