Solved

I am running into a problem displaying a graph on a SSL web site when using <cfgraph> tag.

Posted on 2004-08-03
6
302 Views
Last Modified: 2013-12-24
When my user goes to a template on my SSL web site, and it needs to display a graph, the browser warns the user that the page is displaying both secure and non-secure items.  I need this to be all SSL encrypted!  I am running 2 IIS 5.0 sites on a windows 2000 server, running ColdFusion MX, and using an IIS SSL cert @ 128 bit.  When I setup the SSL site, I ran the batch files that remote and then re-create the IIS connectors, so both sites serve CF pages just fine, but my graphs are not encrypted, help! :)
0
Comment
Question by:JUSTICE
  • 4
6 Comments
 
LVL 5

Expert Comment

by:Seth_Bienek
ID: 11706594
Hello,

<cfgraph> references files that reside in the /cfide folder, so you will need to create a virtual directory on your secure site that points to the CFIDE folder.

Regards,

Seth
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 11706630
You can save the graph/chart to a file first that is in the secure location (instead of cfide) and then display that.

This will prevent the warning.
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 11706634
PS you should use cfchart and not cfgraph on MX
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 35

Accepted Solution

by:
mrichmon earned 250 total points
ID: 11706665
Example saving to a file in secure location:

<cfchart
      chartheight="600"
      chartwidth="750"
      yaxistitle="Reservation Count"
      format="jpg"
      scalefrom="0"
      scaleto="300"
      gridlines="13"
      name="output_graph">

chart contents go here
</cfchart>

<cffile
      action="write"
      charset="ISO-8859-1"
      file="#ExpandPath('/graphs/MyGraph.jpg')#"
      output="#output_graph#"
      addnewline="yes">

<cfoutput><img src="/graphs/MyGraph.jpg" height="600" width="750"></cfoutput>
<!--- The above line actually displays the chart --->

0
 
LVL 1

Author Comment

by:JUSTICE
ID: 11707529
sweeet, I didnt click that I could save the chart output as a variable. :)  From the looks of it I could output a .swf too for flash formatted charts, yes?

As far as multiple charts, I could possibly write some kind of loop to increment names, some of my templates present 10 or more charts....

(I do use cfchart, sorry, I still remember cfgraph from 2 versions ago, hehe)

I guess my other question is, can I possibly tell the cfchart tag to output in a different root folder or something, this solution would be a pain in the rear for the tons of charts I have to make! :)
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 11709701
yep - you can specify whatever folder you want in the cffile portion - and you can dynamically make the names
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question