Sign in to follow this  
shamirb

dhtml menu hide my flash graph

Recommended Posts

Hi,

I've dhtml menu (from http://dhtml-menu.com/) and fusion graph in the same php page.

my menu is a dop-down menu, when clicking the menu - the sub menu go behind the flash chart, and can not been seen.

I know that my solution will be found in the menu code or in the graph code, if it's related to the dhtml menu - then I'm sorry for posting this issue here.

Thank You

Shamir

Share this post


Link to post
Share on other sites

FusionCharts is a set of Flash movies, and as kind of plugins, are rendered in a special way by the browsers (a method known as "windowed"), making them the topmost objects in a page.

To allow DHTML objects appear over a Flash movie just add this parameter:

WMode=Transparent

to the Flash <object> tag.

It should look like this:

<param name="WMode" value="Transparent">

In order to support Mozilla-based browsers and other browsers, such as Safari, you should also include the wmode parameter in the <embed> tag, like this:

<embed wmode="transparent" .......></embed>

If you're using the FusionCharts JavaScript class to embed your charts, you may download the updated JavaScript class from http://www.fusioncharts.com/Downloads/FusionChartsWMode.zip

Share this post


Link to post
Share on other sites

Hi

I'm having the same problem with the above using Visual studio web developer 2008/ASP.NET 2.0 (VB).

I used to use asp and could edit the file in:

FusionChartsCodeASPIncludesFusionCharts.asp

I'm now trying to do the same thing to edit:

FusionChartsCodeVB_NETsrcFusionCharts.vb

I can edit the file and add the following parameter within the RenderChartHTML Function.

strFlashVars.Append(("<param name=""wmode"" value=""transparent"" />" & Environment.NewLine))

but this still doesn't work. I think I am refering to the wrong file/function because if I change the function name to RenderChartHTML_Test my code still renders the chart.

Any idea what I'm doing wrong?

Many Thanks

Paul

Share this post


Link to post
Share on other sites

Hi Paul,

Could you please tell us which method you are using? If you are using RenderChart() then you need to edit FusionCharts.js and add this.addParam("wmode","opaque"); or addParam("wmode","transparent"); [ both 'transparent' and 'opaque' will work] near lines where this.addParam occurs.

If you are using RenderChartHTML() you need to change the vb code as you have rightly shown in your post, recompile it to FusionCharts.dll and replace the old FusionCharts.dll in the BIN folder.

Share this post


Link to post
Share on other sites

Hi,

 

Yes all seems to be sorted now. I am using the RenderChartHTML function, but wasn't reconpiling the project when I ran the page. As soon as I rebuilt the project everything worked as you suggested.

Many Thanks

Paul

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this