FusionCharts Forum: Charts not rendering over HTTPS in IE (ASP) - FusionCharts Forum

Jump to content

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

Charts not rendering over HTTPS in IE (ASP) Can't render charts in IE over SSL

#1 User is offline   msdispose 

  • Forum Newbie
  • Group: Members
  • Posts: 1
  • Joined: 28-January 10

Posted 28 January 2010 - 07:36 PM

Hi,

I've searched this and found it to be a topic discussed frequently, and I've read the page at http://www.fusioncharts.com/free/docs/Contents/Adv_SSL.html to try to resolve the problem, but no luck.  My chart renders fine over HTTP, but not in HTTPS.

I'm using FusionCharts Javascript class to embed the chart, and I'm using the dataXML method.

I've put the following code into my (classic ASP) .asp page that contains the "Call renderChart" statement:

<% Response.CacheControl = 'cache, must-revalidate" %>

<% Response.AddHeader "Pragma", "public" %>

<% Response.CacheControl = "cache, must-revalidate" %><% Response.AddHeader "Pragma", "public" %><% Response.Expires = -1 %><% Response.CacheControl = "cache, must-revalidate" %><% Response.CacheControl = "cache, must-revalidate" %><% Response.AddHeader "Pragma", "public" %><% Response.Expires = -1 %><% Response.AddHeader "Pragma", "public" %><% Response.Expires = -1 %>

But no luck...it works great on HTTP but not on HTTPS.  How can I get it working on HTTPS?

Thanks!

0

Other Replies To This Topic

#2 User is offline   Madhumita 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1434
  • Joined: 04-September 09

Posted 01 February 2010 - 07:02 AM

Hello,

After doing a through research I found that we can't modify the Cache-Control and Pragma header if it is set in IIS using ASP.NET code.
Even if we try to modify the headers then instead of overwriting the header our custom header gets appended to the existing header. There is no solution for this as of now.

So, when you are using SSL and DataURL method the simple solution is to use XMLHttpRequest Object in the HTML/JavaScript code and provide the DataURL path to that object, and render the chart at onreadystatechange event of XMLHttpRequest object but instead of using DataURL method we have to use DataXML method.

A simple example:

Quote

  1.  
  2. <div id=[color= rgb(51,102,204)]"chartdiv"[/color] align=[color= rgb(51,102,204)]"center"[/color]>
  3.         FusionCharts. </div>
  4.       <script type=[color= rgb(51,102,204)]"text/javascript"[/color]>
  5.               var xmlHttp = new XMLHttpRequest[color= rgb(102,204,102)]([/color][color= rgb(102,204,102)])[/color];
  6.               xmlHttp.[color= rgb(0,0,102)]open[/color][color= rgb(102,204,102)]([/color][color= rgb(51,102,204)]'GET'[/color], [color= rgb(51,102,204)]'https[/color]://localhost/xmlhand/Handler.ashx', true[color= rgb(102,204,102)])[/color];
  7.               xmlHttp.[color= rgb(0,102,0)]onreadystatechange[/color] = function[color= rgb(102,204,102)]([/color][color= rgb(102,204,102)])[/color] [color= rgb(102,204,102)]{[/color]
  8.                    if [color= rgb(102,204,102)]([/color]xmlHttp.[color= rgb(0,102,0)]readyState[/color] == [color= rgb(204,0,0)]4[/color] && xmlHttp.[color= rgb(0,0,102)]status[/color] == [color= rgb(204,0,0)]200[/color][color= rgb(102,204,102)])[/color] [color= rgb(102,204,102)]{[/color]
  9.                    var xdoc = xmlHttp.[color= rgb(0,102,0)]responseText[/color];
  10.                    var sHTMLTag=[color= rgb(51,102,204)]"<object codebase="[/color]https://download.macromedia.com/pub/sho ... on=6,0,0,0" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="400">";
  11.                    sHTMLTag+=[color= rgb(51,102,204)]"<param name="[/color]movie" value="Column2d.swf"></param>";
  12.                    sHTMLTag+=[color= rgb(51,102,204)]"<param name="[/color]FlashVars" value="&dataXML=" + xdoc +[color= rgb(51,102,204)]""[/color]></param>";
  13.                    sHTMLTag+=[color= rgb(51,102,204)]"<param name="[/color]quality" value="high"></param>";
  14.                    sHTMLTag+=[color= rgb(51,102,204)]"<param name="[/color]WMode" value="Transparent"></param>";
  15.                    sHTMLTag+=[color= rgb(51,102,204)]"<embed width="[/color]350" pluginspage="https://www.macromedia.com/go/getflashplayer" flashvars="&dataXML=" + xdoc + [color= rgb(51,102,204)]""[/color] quality="high" height="400" name="FusionChart_StatisticsProject" type="application/x-shockwave-flash" wmode="transparent" src="Column2d.swf"></embed>";
  16.                    sHTMLTag+=[color= rgb(51,102,204)]"</object>"[/color];
  17.                    document.[color= rgb(0,102,0)]getElementById[/color][color= rgb(102,204,102)]([/color][color= rgb(51,102,204)]"chartdiv"[/color][color= rgb(102,204,102)])[/color].[color= rgb(0,102,0)]innerHTML[/color]=sHTMLTag;
  18.                [color= rgb(102,204,102)]}[/color]
  19.           [color= rgb(102,204,102)]}[/color]
  20.           xmlHttp.[color= rgb(0,102,0)]send[/color][color= rgb(102,204,102)]([/color]null[color= rgb(102,204,102)])[/color];   
  21. </script>
  22.  


Regards,
Madhumita Chakraborty

Follow us on Twitter :)
0

Other Replies To This Topic

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