How you can open a Where is My Technician URL with a Customer Domain in IFRAME
Important: Updated Content Available: As part of
our ongoing initiative to consolidate our documentation with
up-to-date use cases, this page is being transitioned. The latest
content is available in Configure Where is My
Technician. We recommend that you update your
bookmarks accordingly.
Use the sample code provided here to configure the Where is My Technician URL with a custom domain name to open in iFrame.
<!DOCTYPE html>
<html>
<head>
<title>WMT within iframe</title>
<style type="text/css">
html {
overflow: auto;
}
html,
body,
div,
iframe {
margin: 0px;
padding: 0px;
height: 100%;
border: none;
}
iframe {
display: block;
width: 100%;
border: none;
overflow-y: auto;
overflow-x: hidden;
}
</style>
</head>
<body>
<iframe id="wmt-chrome"
src="#"
frameborder="0"
marginheight="0"
marginwidth="0"
width="100%"
height="100%"
scrolling="auto">
</iframe>
</body>
<script type="text/javascript">
document.getElementById('wmt-chrome').setAttribute('src', 'https://{custom_domain_name}' + window.location.pathname);
</script>
</html>