Topic: I can't get the Spry Menu to work with SimpleViewer in IE

For some reason I can't get the menu bars to display in IE when using SimpleViewer.  It works on all the other pages except the ones that I have the SimpleViewer in.  I would love help.

Here is my code.

<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" type="text/css" href="../karman.css">

<title>Karman Art and Design</title>

<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>

<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="SpryAssets/SpryMenuBarHorizontal2.css"/>

<script type="text/javascript">
function HttpRequest(url){
var pageRequest = false //variable to hold ajax object
/*@cc_on
   @if (@_jscript_version >= 5)
      try {
      pageRequest = new ActiveXObject("Msxml2.XMLHTTP")
      }
      catch (e){
         try {
         pageRequest = new ActiveXObject("Microsoft.XMLHTTP")
         }
         catch (e2){
         pageRequest = false
         }
      }
   @end
@*/

if (!pageRequest && typeof XMLHttpRequest != 'undefined')
   pageRequest = new XMLHttpRequest()

if (pageRequest){ //if pageRequest is not false
   pageRequest.open('GET', url, false) //get page synchronously
   pageRequest.send(null)
   embedpage(pageRequest)
   }
}

function embedpage(request){
//if viewing page offline or the document was successfully retrieved online (status code=2000)
if (window.location.href.indexOf("http")==-1 || request.status==200)
   document.write(request.responseText)
}

HttpRequest("navbar.html") //include "external.htm" onto current page
HttpRequest("navbar2.html") //include "external.htm" onto current page
</script>
</head>

<body>
<script type="text/javascript">
ajaxinclude("navbar.html")
ajaxinclude(rootdomain+"/includes/navbar.html")
ajaxinclude("navbar2.html")
ajaxinclude(rootdomain+"/includes/navbar2.html")
</script>

<div class="SecondTitle">Gallery</div>

<div class="viewer">
    <script type="text/javascript" src="swfobject.js"></script>
   
    <div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player.
    <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>
   
    <script type="text/javascript">
    var fo = new SWFObject("viewer.swf", "viewer", "800", "400", "4", "#000000");
    fo.write("flashcontent");   
    </script>
</div>

</body>
</html>

Re: I can't get the Spry Menu to work with SimpleViewer in IE

The swfobject line should be in the header:

<script type="text/javascript" src="swfobject.js"></script>

If it is a drop down menu you could try adding a wmode just before fo.write("flashcontent"); and set it to either opaque or transparent.

fo.addParam("wmode", "opaque");

please post the url for further assistance.

Mike Richards
SimpleViewer Support Team.

Re: I can't get the Spry Menu to work with SimpleViewer in IE

Thanks for your reply, unfortunately the files are not out on the web yet, just on my computer.  The reason the

    <script type="text/javascript" src="swfobject.js"></script>

is in the body is because that is what was suggested in the FAQ for Simpleviewer.  If I put it in the header file none of the menu bars display.

Do you have any other suggestions?

Tina

Re: I can't get the Spry Menu to work with SimpleViewer in IE

Without seeing the code in action my only idea is that some how swfobject and SpryMenuBar are conflicting.

Mike Richards
SimpleViewer Support Team.