mwolfman wrote:The java is calling a specific file and its not called index.html, .htm .php. Do you have a directory list of sitemap/?
Mike, thanks for getting involved (he said, struggling to keep his head above water)
I think I am beginning to see some light.
My little application (of which a fragment is posted here) is supposed to locate each web page referenced from a given web page. That is, for some URL of a client of mine, load that page, then attempt to load each link on that page. Report Errors.
My assumption was that excepting for obvious links (ending in .JPG, .ZIP etc.) I would be looking at htm/html links, and that they would load if the web pages were present, and would not load (Report Error!) if they were not present.
I had not contemplated public web sites that build web pages on-the-fly in this manner.
I can read the body text returned (this SiteMap page shows me "Sorry, we can't find the page you're looking for") and detect in VBA that *I* have had a problem.
I can trace back the problem "20100301113957 URLer ChrisL strPageFound - Page Not Found FROM
http://www.winaltainc.com/sitemap/" onclick="window.open(this.href);return false; FROM
http://www.winaltainc.com/sitemap/" onclick="window.open(this.href);return false;
FROM
http://www.winaltainc.com" onclick="window.open(this.href);return false;" but I suspect that going deeper into it may not be economically feasible for me.
Microsoft has some interetsing snippets of code that may allow me to detect in more detail what is going on.
For now I can detect an "error" and can investigate it manually before emailing the client.
This is the first web site I've encountered in about 1,000 that exhibits this weird behavior.
I can examine the scripts in the parent web page (that points to sitemap). In the case of "
http://www.winaltainc.com" Script Item(3) shows the details of the script for invoking the site map, but the names are specific to this site, so I don't see that as a general solution.
I think the layperson's answer is "When the user clicks on a link, the web page is smart enough to fire up some associated code (javascript) to bring the linked page into view.", and that a mere mortal in VBA does not have the ability to trigger that event on a link. That is, in VBA I am not able to, nor am I able to detect that I should, simulate a "click" on a link.
I'm going to make myself a cuppa and have a lie-down ...