Sign in to follow this  
nheilsb

Images not all exported/saved to server in IE

Recommended Posts

Hello FC Team,

 

 

 

I have setup a project that uses FC. The rendering of the FC works fine in Firefox and IE. For the exporting part, I did not set any javascript code that will do the exporting. I just use this setting:

 

 

 

exportFileName='testing';

 

showExportDialog='0'

 

exportEnabled='1'

 

exportAtClient='0'

 

exportAction='save'

 

exportHandler='FCExporter.jsp'

 

 

 

I have 12 images that needs to be saved back to the server. The above code is working in Firefox. But in IE, it's not. So I found some tips from the forum to use a FusionChartsExportObject. Below is the code snippet that is intended only for IE:

 

 

 

var myExportComponent = new FusionChartsExportObject({

 

id: "fcExporter1",

 

swfLocation: loc + "charts/FCExporter.swf",

 

exportAttributes: { defaultExportFormat: 'jpg' },

 

debugMode: true

 

});

 

myExportComponent.checkFlashVersion = true;

 

myExportComponent.componentAttributes.fullMode = '1';

 

myExportComponent.componentAttributes.showAllowedTypes = '1';

 

myExportComponent.Render("export_all");

 

myExportComponent.BeginExport();

 

 

 

With this, I was able to saved the first 3 files and the others were not.

 

 

 

I'm not sure here what's lacking. I did not even see any javascript error in IE and in my application logs.

 

 

 

Could you please have someone take a look at this issue? Your quick response is greatly appreciated.

 

 

 

Many thanks.

 

 

 

Neil

Share this post


Link to post
Share on other sites

Hello Experts,

 

 

 

Can you have someone take a look at this please? I need to fix this asap for we are behind the schedule. Please help!!!

 

 

 

By the way, in addition to the ones above, I put all the chartIds in the div like the code snippet attached.

 

 

 

All images are working (rendering/exporting) in Firefox, however in IE (7&8), only the first 3 divs were saved back to the server.

 

 

 

Can you please advise if I missed out something here?

 

 

 

Your quick response is highly appreciated.

post-9145-128441586914_thumb.png

Share this post


Link to post
Share on other sites

Hi

Can you please specify the following:

1. The exact problem -  For example, the capturing dialog is shown but nothing happens after that.

2. The html code from view source which shows the rendering of the chart.

This will help us guide you better.

Thanks

Srividya

Share this post


Link to post
Share on other sites

Here are the details:

 

 

 

1.) I have 12 fusion chart images for my project. And these images are distributed in different tabs like:

 

 

 

1st tab - Region (contains 3 chart images for region)

 

2nd tab - City (contains 3 chart images for city)

 

3rd tab - State (contains 3 chart images for state)

 

4th tab - National (contains 3 chart images for national)

 

 

 

I set the FC Export Parameters like the one below:

 

exportFileName='hbi_details__chartId_timestamp'

 

showExportDialog='0'

 

exportEnabled='1'

 

exportAtClient='0'

 

exportAction='save'

 

exportTargetWindow='_self'

 

exportHandler='charts/FCExporter.jsp'

 

 

 

2.) I setup the jsp like the one attached - results.txt. There are two main div I used for the graphs:

 

a.) hbi_panel - this is for the active tab

 

b.) export_all - for generating and exporting all the chart images. I used the style - visibitity: hidden.

 

 

 

3. When I run using Firefox, everything works fine. All images is exported back to server. However, when I test it using IE, only the charts within the current tab, that is under region tab are the ones exported back to server. The rest were not. So I setup this call that is intended only for IE.

 

 

 

function sendExportChart(){

 

var myExportComponent = new FusionChartsExportObject({

 

id: "fcExporter1",

 

swfLocation: loc + "charts/FCExporter.swf",

 

exportAttributes: { defaultExportFormat: 'jpg' },

 

debugMode: true

 

});

 

myExportComponent.checkFlashVersion = true;

 

myExportComponent.componentAttributes.fullMode = '1';

 

myExportComponent.componentAttributes.showAllowedTypes = '1';

 

myExportComponent.Render("export_all");

 

exportComponent.BeginExport();

 

}

 

 

 

3. When I run again, nothing happens. Still, only the images under that region were saved back to server. I did not even see any error in IE.

 

 

 

I hope this clarifies everything on your side.

 

 

 

Again, your quick response is highly appreciated.

results.txt

Share this post


Link to post
Share on other sites

Hello,

 

 

 

Is there any update on this issue? Sorry but we're already behind schedule and the only one left is the IE issue. If you have someone who can quickly take a look at it and provide a valuable solution, that would be great.

 

 

 

Many thanks.

Share this post


Link to post
Share on other sites

Hello,

 

 

 

Thanks for your quick response.

 

 

 

No, I did not use any framework for constructing the tabs. I just use html list construct as you can see in the attached files. I hope these helps.

 

 

 

Many thanks.

result-details.txt

post-9145-128441587317_thumb.png

Share this post


Link to post
Share on other sites

Hi Team,

 

 

 

Since we are running out of time, we just made an intermediate page that displays all charts (visible on the screen) that need to be exported. This solves the problem I discussed above.

 

 

 

However, if you could have a fix, that is without having an intermediate page, that would be great.

 

 

 

Thanks for your support.

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