jwcrosby

Visible in Firefox, but not in IE

Recommended Posts

The following code is working properly in Firefox, but not in IE. It's built on the template that came with the documentation. I've stripped out some lines of unnecessary stuff to shorten it. It uses PHP Class.

 

What I get in IE is just a blank space where the chart should be.

 

Here's the code:

<?
include("fusion_charts/Code/PHPClass/Includes/FusionCharts_Gen.php");
include("fusion_charts/Code/PHPClass/Includes/DBConn.php");
?> <HTML>
<HEAD>
 <TITLE>Plot of All Communities</TITLE>
 <SCRIPT LANGUAGE="Javascript" SRC="fusion_charts/Code/FusionCharts/FusionCharts.js"></SCRIPT>
</HEAD>
<BODY> <CENTER>
<h2>Plot of Community & Church Development (all)</h2> <?
 // Connect to the Database
 $link = connectToDB();  # Create Scatter chart object using FusionCharts PHP Class
 $FC = new FusionCharts("Scatter","650","450");   # Set Relative Path of swf file.
 $FC->setSWFPath("fusion_charts/Charts/");
 
 # Define chart attributes 
 $strParam="yAxisName=Community Development;xAxisName=Church Development";   #  Set chart attributes
 $FC->setChartParams($strParam);  # Add Category, 1st parameter take label and 2nd parameter takes x axis value
   # as parameter list
   $FC->addCategory("2","x=2;showVerticalLine=1");
   $FC->addCategory("4","x=4;showVerticalLine=1");
   $FC->addCategory("6","x=6;showVerticalLine=1");
   $FC->addCategory("8","x=8;showVerticalLine=1");     # Add a new dataset - this produces the legend
   $FC->addDataSet("All Users","color='0000FF' anchorSides='4' anchorRadius='4' anchorBgColor='C6C6FF' anchorBorderColor='0000FF'");  // Fetch data using SQL Query
 $strQuery = "SELECT church_development, community_development FROM tblcommunities;";
 $result = mysql_query($strQuery) or die(mysql_error());
 $num=mysql_numrows($result);
 $i=0;
 while ($i < $num) {
 $church=mysql_result($result,$i,"church_development");
 $community=mysql_result($result,$i,"community_development");
 #add data to data chart
 $FC->addChartData($church,"y=".$community);
 $i++;
 } mysql_close($link);  # Render the chart
 $FC->renderChart(); ?></CENTER>
</BODY>
</HTML>

Can anyone see my problem?

 

Thanks in advance for any help.

 

Jerry

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Jerry,

 
It seems that there is some problem with your Flash Player (ActiveX control).
 
What you could do is:
 
1. Check for the Flash Player version >= 8.0. If it is already >= 8 then please follow 2nd method.
 
2. Uninstall Flash Player and then Re-install
  To uninstall, Please Run: C:WindowsSystem32MacromedFlashuninstall_activeX.exe
 
-OR-
 
3. Try to see the chart to a different/other computer.

Share this post


Link to post
Share on other sites

First of all, Rahul, thanks for fixing the code in my post! Looks much better!

 

 

 

I've tried viewing the file on 3 different computers, all with the same results. All are running Version 9 of Flash.

 

 

 

On the computer I am currently at, I do not find that uninstall_activex.exe file. What I do see in that folder is uninstall_plugin.exe and UninstlFl.exe. However, I do see Macromedia Flash 8 and Flash 8 Player listed in "add/remove programs" on the control panel.

 

 

 

Suggestions of what to do?

 

 

 

Thanks.

 

 

 

Jerry

Share this post


Link to post
Share on other sites

Hi Jerry,

 
You are most welcome :(.
 
You can execute UninstlFl.exe file OR you can also use Add/Remove Program.
Also, could you please let me know, what you get if you right click on that blank space (in IE)?
 

Share this post


Link to post
Share on other sites

I have uninstalled and re-installed Flash v. 10 and still no success.

 

 

 

When I right-click on the white space the box shows "movie not loaded" greyed/faded out and "About Adobe Flash Player 10..." in bold.

 

 

 

Jerry

Share this post


Link to post
Share on other sites

I can see that one!!! Yeah!

 

 

 

I'll delve into the code to find where the difference is, but I'm sure you could tell me and save some time. I look forward to hearing from you.

 

 

 

Thanks.

 

 

 

Jerry

Share this post


Link to post
Share on other sites

I believe I've located the problem. I copied over the FusionCharts.js and FusionCharts_Gen.php files that you just sent onto my server one-by-one and when I used your copy of FusionCharts.js it worked. I noticed a slight difference in the creation dates on the two versions of that file and that made me suspicious.

 

 

 

Was it something I had done to that .js file? I can't recall ever doing anything there, but perhaps I did.

 

 

 

Thanks again.

 

 

 

Jerry

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