Solved

overLIB z-index problem

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now