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
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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