Solved

overLIB z-index problem

Posted on 2010-09-01
3
686 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Provide the IDEA of External JS 1 34
ASP sending two datas 2 22
Make page layout not change with page 1 22
Why is my $_POST not going to results page 10 32
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

685 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