Note: HTTPS must first be enabled on your account to use this functionality. For more information, please contact your Zmags Account Manager.
When embedding your HTTPS publication using the Zmags Embedded Viewer API, the code required is slightly different. This will notify the Viewer API that your publication will be using HTTPS rather than HTTP:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://secure.api.viewer.zmags.com/viewer/viewer.js"></script>
</head>
<body>
<div id="myViewerContent" style="position:fixed; top:0px; left:0px; height:100%; width:100%;"></div>
<script>
var viewer = new com.zmags.api.Viewer();
viewer.setPublicationID("publication_ID_here");
viewer.setParentElementID("myViewerContent");
viewer.show();
</script>
</body>
</html>
The above is just one example, of course.
HTTPS can be used with any of our embedded viewer demos:
1) Start by following the normal procedure for embedding a publication, as detailed in the following tutorial or one of its attached demos: Embedding Your Publication
2) In the line where you are asked to use
"http://api.viewer.zmags.com/viewer/viewer.js", instead use
"https://secure.api.viewer.zmags.com/viewer/viewer.js".
Note: HTTPS must first be enabled on your account to use this functionality. For more information, please contact your Zmags Account Manager.
Comments
0 comments
Please sign in to leave a comment.