CFChart makes swf file with high z-index

Posted on 2006-05-04
Last Modified: 2013-12-24
I'm using the coldfusion chart builder to make some nice graphs, but have come across an interesting problem.  The swf file that is generated has a higher z-index than a searchbox that should over lay it.  I can control the search box z-index no problem, and have set it to max (10).  From what I've read, swf files are created with an "infinite" z-index (and if its on the internet it has to be true).  I want to change the index, but since I'm relying on ColdFusion to make the swf file I don't know how to change it
Here is the CFChart code that I'm using
<cfchart scalefrom="0" chartheight="300" chartwidth="450" tipstyle="MouseOver" format="Flash"  xaxistitle="Day" yaxistitle="Posts" show3d="#chart3d#" URL="javascript:goDailyPost('$value$', '$itemlabel$','$serieslabel$')">
  <cfchartseries type="bar" itemcolumn="POSTDATE" valuecolumn="POSTS" seriesColor="##3885bf">
     <cfinclude template="../../Query/getDailyPostTotals.cfm">
     <cfloop query="getDailyPostTotals">
        <cfchartdata item="#DateFormat(getDailyPostTotals.POSTDATE,'m/d')#" value="#getDailyPostTotals.POSTS#">

Any help would be appreciated.
Question by:skacore
    LVL 18

    Expert Comment


    There are a couple ways around this. Do a search caus I can't remember but you put the swf in either an iframe or div.

    LVL 3

    Expert Comment

    try this

    <style type="text/css">
          #i1{z-index: 100;

    <div id="i1">
          <iframe name="SiFrame" height="229" width="505"
                src="mygraph.cfm" scrolling="yes" >
    LVL 1

    Author Comment

    even in the iframe, the zindex of flash is "infinite" from what I've read.  It always appears on top of my other elements.  I've just started to set the display attribute to hidden when I need to have something over lay it ... kind of a hack, but it works

    thanks for your help
    LVL 18

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 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

    8 Experts available now in Live!

    Get 1:1 Help Now