Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

overLIB z-index problem

Posted on 2010-09-01
3
Medium Priority
?
722 Views
Last Modified: 2012-05-10
I am developing some pages using AnyGantt (see below) that display Flash Gantt charts based on xml data. I am using overLIB popups on click of symbols on the charts to present various data.

In Firefox this works correctly, with the overLIB popups displayed on top of the chart graphic; however, in IE the popups on the same pages display behind the chart graphic, i.e., they are invisible.

The html is as follows:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>IMS</title>
<script type="text/javascript" language="javascript" src="./js/AnyChart.js"></script>
<script type="text/javascript" src="./overlib.js"></script>
<script type="text/javascript" language="javascript">
function ol5()
{
return overlib('This is an overLIB popup.', WIDTH, 400, RELX, 200, RELY, 400, STICKY, CAPTION,'Task Popup');
}
</script>
</head>
<body>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<div>
<font face="Verdana, San Serif">
<a href="index.html">IMS Home</a>
</div>
    <script type="text/javascript" language="javascript">
    //<![CDATA[
    var chart = new AnyChart('./swf/AnyGantt.swf');
    chart.width = 1250;
    chart.height = 800;
    chart.setXMLFile('./test.xml');
    chart.write();
    //]]>
    </script>
</body>
</html>


The chart is placed on the page by the AnyGantt script under control of the Flash file AnyGantt.swf and the Javascript library AnyChart.js. A click event in the xml file referred to in the AnyGantt script (test.xml) calls the function labeled ol5() in the html, which causes the overLIB popup to display.

I have tried adjusting the z-index in the overDiv div, but this has no effect. I have also tried placing the AnyGantt script in a separate div with a z-index lower than the overDiv div, which also has no effect. Can anybody suggest why Firefox displays the popup on top of the graphic, while IE displays it behind?
0
Comment
Question by:dgmoore1
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Eternal_Student earned 2000 total points
ID: 33575141
Have you tried messing with the flash modes:

http://stackoverflow.com/questions/1567420/overlay-html-over-flash
0
 

Author Comment

by:dgmoore1
ID: 33575298
No, I haven't - I'll have a look at this. Thanks!
0
 

Author Closing Comment

by:dgmoore1
ID: 33579382
Your suggestion sent me in the right direction. This source:

http://www.projectseven.com/support/answers.asp?id=127

has a very clear explanation. Thanks for the tip!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question