I have been using a product which displays parsed XML files as HTML. It provides functionality to edit the XML within the product and refreshes its internal cache automatically.
However if you edit the XML from outside the product it will not reload the changed XML and so the changes are not visible.
To reload the XML (the product is Splunk btw) you need to append;
en-US/debug/refresh?entity=/admin/views
to the end of the IP/Host of the server. Is there a method through either HTML or JavaScript where I could call this URL in the background when a page is loaded?
Running a script externally fails as it requires credentials to access and hard-coding them isn’t an option.
If I could call the page from within a user session already in existence then it would reload the cache transparently to the user.
HTML is static, so it doesn’t do anything once it’s loaded and rendered. You can use javascript though. I’d recommend using jQuery, since it makes writing javascript very easy, but if you rather not use any javascript libraries, you could copy quirksmode’s XMLHttpRequest function for loading xml dynamically:
http://www.quirksmode.org/js/xmlhttp.html