Strugging with embedded viewer
-
I’m trying to embed the RTIWebViewer on some WordPress pages, and am running into problems. The viewer shows up fine on its own stand-alone web page. If I embed the relevant working code on a WordPress page:
‘<link type=”text/css” href=”css/ui-lightness/jquery-ui-1.10.3.custom.css” rel=”Stylesheet”>
<link type=”text/css” href=”css/webrtiviewer.css” rel=”Stylesheet”>
<script type=”text/javascript” src=”js/jquery_min.js”></script>
<script type=”text/javascript” src=”js/jquery-ui.js”></script><script type=”text/javascript” src=”spidergl/spidergl_min.js”></script>
<script type=”text/javascript” src=”spidergl/multires_min.js”></script><div id=”viewerContainer”><script type=”text/javascript”>// <![CDATA[
createRtiViewer(“viewerContainer”, “https://swvirtualmuseum.nau.edu/wp/RTI/Powell_Watch”, 700, 700);
// ]]></script></div>`… the viewer shows up fine when the page is “Preview”ed, but if I publish it, nothing shows up. Doing some research, it looked like the embedded script calls might be the problem, as apparently WordPress doesn’t allow those (though it’s odd that it works in Preview mode but not Published). So I installed the Scripts N Styles plugin that allows for embedding scripts, converted the above code into a Hoops shortcode, and tried using that. The viewer now shows up, but nothing is visible inside the viewer- apparently the data that’s supposed to load into the viewer doesn’t actually load. Any suggestions would be greatly appreciated. I’m temporarily working around the problem by embedding the viewer in the page in an iframe, but that’s not an ideal solution.
- The topic ‘Strugging with embedded viewer’ is closed to new replies.