FusionCharts Forum: Print and saveImageAs in IE Error - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Print and saveImageAs in IE Error

#1 User is offline   prabu1983 

  • Forum Newbie
  • Group: Members
  • Posts: 1
  • Joined: 27-January 09

Posted 28 January 2009 - 01:22 AM

hi

i got some error in IE using print() and saveImageAs() methods in fusioncharts

Error : objects or methods properties doesn't support

0

Other Replies To This Topic

#2 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 29 January 2009 - 02:09 AM

Hi,
 
Could you please make sure that path to FusionCharts.js is correct? Also make sure that you are using registerWithJS parameter.
 
Example:
 
var chart1 = new FusionCharts("../../FusionCharts/Column3D.swf", "chart1Id", "400", "300", "0", "1");

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#3 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 23 July 2010 - 02:59 AM

Hey,



sorry for responding to this old thread, but I'm having the same problem. registerWithJS is true and the chartid is defined.

Everything works fine in Safar, Chrome and FF but I'm getting the same error as the post starter in Internet Explorer.



Any idea how to solve this?



// Daniel
0

Other Replies To This Topic

#4 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 23 July 2010 - 03:28 AM

Hi,

Could you please attach your small working sample so that we can look into it?

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#5 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 23 July 2010 - 04:09 AM

Hey,



This is the JS code generated by the PHP Class.



Hmm I'm not able to post my XML Code. It always disappears after posting ... Therefore I attached the code ...



// Daniel

Attached File(s)

  • Attached File  test.txt (1.31K)
    Number of downloads: 33

0

Other Replies To This Topic

#6 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 23 July 2010 - 04:55 AM

Hi,

Thanks for the code.

Could you please change put "1" instead of "true" and try again?

Wrong:

var chart_chartid = new FusionCharts("/system/application/views/swf/Column3D.swf", "chartid", "600", "300", "0", "true", "","noscale","EN");

Correct:

var chart_chartid = new FusionCharts("/system/application/views/swf/Column3D.swf", "chartid", "600", "300", "0", "1", "","noscale","EN");

If it did not solve the issue, we request you please attach the PHP chart rendering code.

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#7 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 23 July 2010 - 06:25 AM

Hey,



I tried this, but it doesn't help :)
0

Other Replies To This Topic

#8 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 23 July 2010 - 06:42 AM

Hi,

Could you please attach the PHP chart rendering code?

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#9 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 23 July 2010 - 06:54 AM

Hey Rahul,



this won't be possible, sorry. My class building the chart is 800 lines long, and I do not have the permission to give it to any other person.



But I was able to get some more info on the javascript error:

This is the function called:


function exportChart(chartid) {

    var chartObject = getChartFromId(chartid);

    chartObject.exportChart();

}





This is the function call:


javascript:exportChart	('chartid');





And it seems as if this clearly is a javascript error (not a php error). But I can't explain why this won't work ...
0

Other Replies To This Topic

#10 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 23 July 2010 - 07:14 AM

Hi,

We just need a single line PHP code using which you are rendering the chart.

Also, you can send the code to our support@fusioncharts.com referencing this forum link.

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#11 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 23 July 2010 - 07:47 AM

Hey,



do you mean this line?


		 	$content = $FC->renderChart(false, false);	


0

Other Replies To This Topic

#12 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 23 July 2010 - 08:03 AM

Hi,

Yes we need exactly this.

Now we need to check the FusionCharts_Gen.php class file that you are using, could you please attach FusionCharts_Gen.php with your post?

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#13 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 23 July 2010 - 09:23 AM

Of course, here it is

Attached File(s)


0

Other Replies To This Topic

#14 User is offline   Rahul Kumar 

  • Supreme Being
  • Group: Moderators
  • Posts: 1041
  • Joined: 18-March 08

Posted 23 July 2010 - 01:24 PM

Hi,

Could you please confirm once that are you still getting this issue, because it seems that you have already done the necessary changes in the FusionCharts_Gen.PHP file?

In case if you are still getting the issue then,

1. Could you please let us know that how are you rendering the chart with "$content" variable?

2. Please share the LIVE URL with us.

Regards,
Rahul Kumar
Software Engineer

A byte of magic.

 
0

Other Replies To This Topic

#15 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 24 July 2010 - 05:13 AM

Hey Rahul,



I've made some tests (it works fine when taking the javascript code I gave you and including in an html file). So I suppose that the error depends on the way I implement the charts in my project.



The $content variable is passed back to the browser via the XAJAX-Framework. So it could be, that the charts are not registered properly with the JS-framework of fusioncharts, since they are added to the DOM after loading the page.



Unfortunately I am not able to give you a live url, since all developing is local. But maybe my tests I told you about will give you some more information?

If this is not enough, I could set up a demo with the XAJAX framework in place.



// Daniel
0

Other Replies To This Topic

#16 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 26 July 2010 - 03:41 AM

Hey Rahul,



I've made some more tests and found out that the problem is not XAJAX but the jquery plugin "fancybox" I use. I created a demo which you can see here:



# With Fancybox (Print/Export does not work in IE)

http://www.lange-dan...e/test/test.php



# Without Fancybox (Print/Export works fine)

http://www.lange-dan...ut_fancybox.php



In case you need the code, I've attached the whole "test" directory here. (Including one FusionCharts SWF (Column3D.swf), if this is against your regulation feel free to remove the attachment).



I hope you can figure out why print/export doesn't work ... cause I'm out of ideas.



Thanks, Daniel

Attached File(s)

  • Attached File  Arkiv.zip (312.6K)
    Number of downloads: 48

0

Other Replies To This Topic

#17 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1919
  • Joined: 19-March 07

Posted 28 July 2010 - 03:06 AM

Hi,



It seems that the FancyBox framework is removing the exposed external-interface functions like print() and exportChart() or any other.



So We have forced these functions in the code and the export and print now seem to work fine.



Please find the modifications in code in zip attached. Also, please update FusionCharts.php from the attached zip.

Attached File(s)


Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#18 User is offline   dlange 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 14-July 10

Posted 28 July 2010 - 04:20 AM

Hey,



thank you very much, this works like a charm! Could you tell me which changes you made to the FusionCharts.php?

I'm using FusionWidgets as well and got a beta version of the PHP-Class for FusionWidgets and I would like to replicate those changes there as well.



Thanks again,

Daniel
0

Other Replies To This Topic

#19 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1919
  • Joined: 19-March 07

Posted 28 July 2010 - 04:54 AM

Hi,

In PHPClass I have modified some lines added DOMId to FlashVars for RenderChartHTML() function.

Line: 1588

$nregisterWithJS = $this->boolToNum($registerWithJS);

$strFlashVars = "&chartWidth=" . $chartWidth . "&chartHeight=" . $chartHeight . "&debugMode=" . $this->boolToNum($debugMode) . "registerWithJS=" . $nregisterWithJS;

$strFlashVars .= "&DOMId=" . $chartId . "&scaleMode=" . $this->JSC["scalemode"] . "&lang=" . $this->JSC["lang"];

And

$strHTML .= "<embed src="$chartSWF" FlashVars="$strFlashVars" quality="high" width="$chartWidth" height="$chartHeight" name="$chartId" ";
...
$strHTML .= "t<param name="FlashVars" value="$strFlashVars" /> ";
Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#20 User is offline   simon_6301 

  • Forum Newbie
  • Group: Members
  • Posts: 1
  • Joined: 02-August 10

Posted 02 August 2010 - 11:22 PM

hello,i have a question, how can i merge some rows of the gannt chart?

thanks!

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0

Other Replies To This Topic

#21 User is offline   Basundhara Ghosal 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2459
  • Joined: 15-September 09

Posted 02 August 2010 - 11:28 PM

Hi Simon,

Welcome to FusionCharts forum. :)

Could you please specify the issue a bit elaborately?

Awaiting your reply.

Regards,

Basundhara Ghosal

Follow us on Twitter :D
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic