I’ve got a legacy application that is launched from an HTA. I’m starting with a file:// then immediately redirects the user to a web url location.href="http://server/path".
Is there a way to detect if navigation succeeded or not (or a way to detect if it will succeed)
Ideas:
XHRto the url to get HTTP response code before navigating to url. (Permission issue as the sites are not identical: file:// -> http://)SCRIPTelement to a known path at url.- Access url in
FRAME. Then reload parent once it succeeds from either the result page or from theHTA.
Notes:
The URL will be a dynamic page (servlet) which are hosted on the app servers. The static content (images, etc) are hosted differently. By verifying the image, it doesn’t guarantee that the real url works. Please have answers reflect this difference. (Thanks!)
The
CALLINGpage cannot directly know if its navigation will succeed or fail. Different methods can be used to increase the likelihood that it will occur, but ultimately it may or may not succeed.