Retrieving arguments from a URL
When the maintenance management system does not provide a convenient API, but a unique identifier is available in the URL of the maintenance management system page, then the identifier can be retrieved from the URL. For example, specified the following URL for the current web page in the maintenance management system:
http://srv/gisapp/showmap.jsp?latitude=123&longitude=445
The URL arguments can be extracted and the Meridian Explorer home page can be opened by the following JavaScript:
<script language=javascript>
function showDocs()
{
sURL = window.location.href;
s = sURL.split ('?')
window.open(‘http://<ServerName>/ExplorerClient/Home.aspx?' + s [1]);
}
</script>
A link to the Meridian Explorer home page can be provided by an anchor on the maintenance management system’s web page similar to the following.
<a onclick ="showDocs ();">Show linked documents</a>
With this technique, it is most convenient to pass all of the arguments from the maintenance management system URL to the URL of the Meridian Explorer home page and then define filters only for the arguments that are necessary for the tag to document relationship.
One advantage of this technique is that the JavaScript runs on the client in the browser, so it cannot interfere with the server-side operation of the maintenance management system application.