eagles9999

Problem wit IE8 and Javascript Fusioncharts

Recommended Posts

I use Fusion Charts in my app and display the chart in the MS

 

Browser ActiveX Control.

 

 

 

Under WinXP and IE7 not problem. Everything works fine.

 

 

 

But now under Win7 and IE8 there is a problem.

 

 

 

The first time I run the chart it displays properly. However, when I close the

 

window I get a Script Error.

 

 

 

The error dialog provides the Line Number and Character but I cannot find a way to

 

view the source from the Active X. The html chart header file that is being opened on has 43 lines

 

but the error says line 53. I assume it is referring to some line in the data xml file that it loads.

 

When I call the html chart header directly in a Browser, no problem. But even then when I view

 

the source, I can only see the html chart header file.

 

 

 

Additionally, if I call the same program a second time, the displayed chart is garbled and all squashed up

 

in the top left hand corner of the screen.

 

 

 

I have scoured the net looking for a way to downgrade IE8 to IE7 but is seems it is not possible in Win7

 

to do that. I have also tried adding

 

to html chart header file to no avail.

 

 

 

I have tried using different ActiveX browsers to no avail.

 

 

 

Also, the waiting button at the bottom of the screen that changes to Save when I generate an export no longer

 

appears in IE8.

 

 

 

Any ideas would be really appreciated?

 

 

 

I have tried uninstalling Flash 10 and re-installing...No change.

 

 

 

I have attached my html file (FUELUSAGE.txt) and my xml data file (FUELUSAGE.xml)

 

 

 

These work fine in IE7.

FUELUSAGE.txt

FUELUSAGE.xml

Share this post


Link to post
Share on other sites

Ok. Have gone some way to fixing this problem.

 

 

 

If I change the history settings in IE8 to Check for newer version, every time I visit the webpage

 

it works flawlessly.

 

 

 

So it comes down to finding a way to clear the cache from an embedded MS Web Brower ActiveX control

 

in my app.

 

 

 

Any clues how that can be done.

 

 

 

No Methods or Properties for it in the control. :-/

 

 

 

Cheers,

 

Mark

Share this post


Link to post
Share on other sites

Hi Sudipto,

 

 

 

I have tried that to no avail.

 

 

 

I think the problem is that I do not generate the html page every time I call. It is static and the

 

only thing that changes is the data.xml file that it calls.

 

 

 

myChart.setDataURL("FUELUSAGE.xml");

 

 

 

I think I need something the make the FUELUSAGE.xml above unique for each call but have no idea how to do that.

 

 

 

Regards,

 

Mark

Share this post


Link to post
Share on other sites

Hi Sudipto,

 

 

 

Thanx for the suggestion.

 

 

 

However, it did not work.

 

 

 

Still same symptoms as before.

 

 

 

Please see attached images....

 

 

 

Screenshot 1 ---- Works fine

 

 

 

Now run again...

 

 

 

Screenshot 2 ---- Opens fine but then gives error on exit

 

 

 

Now run again...

 

 

 

Screenshot 3 ---- Image scrambled and compressed in the top left hand corner of the browser.

 

 

 

 

 

 

 

Regards,

 

Mark

post-6795-128441577448_thumb.png

post-6795-128441577477_thumb.png

post-6795-128441577502_thumb.png

Edited by Guest

Share this post


Link to post
Share on other sites

I am also have trouble with the caching of XML chart data, for IE and Firefox. I am using the object tag to embed the charts...

 

 

 

The NOCACHE entry did not work for me, so I removed it here

 

 

 

My XML file changes every 5 minutes, so I need my charts to read the new XML file. What is the best way to disable the flash cache and enforce a fresh chart everytime the page is viewed?

 

 

 

Thank you and have a great day,

 

 

 

Eric

 

 

 

Edited by Guest

Share this post


Link to post
Share on other sites

Hi Eric,

 

 

 

I searched for months to find a solution to this problem.

 

 

 

I am convinced the is some way to overcome it with code but I have not found it.

 

 

 

THE ONLY WAY that I have been able to consistently fix it is by doing the following.....

 

 

 

In IE Menu,

 

 

 

Go to Tools / Internet Options

 

 

 

In the Browsing History on the General Tab select Settings button.

 

 

 

In that dialog the is a radio button group called...

 

Check for newer versions of stored pages.

 

 

 

Make sure you check "Every time I visit the webpage"

 

 

 

You will find that it all works as expected then.

 

 

 

Let me know if you find a more elegant solution.

 

 

 

Cheers,

 

Mark

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Eric,

Could you please specify where in the object tag you are placing NOCACHE?

Share this post


Link to post
Share on other sites

Hi Madhumita,

 

 

 

I am using the following;

 

 

 

param name="FlashVars" value="&dataURL=Data.xml&nocache="+ new Date().valueOf())"&chartWidth=900&chartHeight=300"

 

 

 

Thank you,

 

 

 

Eric

 

 

 

 

 

 

 

Madhumita (1/5/2010)
Hello Eric,

 

 

 

Could you please specify where in the object tag you are placing NOCACHE?

Share this post


Link to post
Share on other sites

Hi Mark,

 

 

 

Thank you for the fix, however as I am sure your aware that only works in IE and not other OS's or browsers. Like yourself, I refuse to believe there is not a fix for this. I must be doing something wrong with the NOCACHE line??

 

 

 

Browsers I must support;

 

Windows: IE 7, IE 8, Firefox

 

MAC: Firefox, Safari

 

Linux: Firefox, Opera

 

 

 

I will keep in touch and let you as soon as I stumble across anything that is helpful...

 

 

 

Have a great day,

 

 

 

Eric

 

 

 

 

 

 

 

eagles9999 (1/4/2010)

 

I searched for months to find a solution to this problem.

 

I am convinced the is some way to overcome it with code but I have not found it.

 

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello ehart,

First of all, new Date().valueOf() is a JavaScript function which cannot be called from the html <object> or <embed> tags.

Could you please tell us what method you are using to refresh the chart?

Share this post


Link to post
Share on other sites

Hi Guys,

 

 

 

Since I am also using ColdFusion I was able to utilize the #getTickCount#. Here is the code that works for me...

 

 

 

param name="FlashVars" value="&dataURL=chartxml/data2.xml?nocache=#GetTickCount()#&chartWidth=900&chartHeight=300"

 

 

 

Thank you for your help,

 

 

 

Eric

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