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
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
301 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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
json_decode return null? 8 93
website file permissions 4 78
Tool to email me when a website changes 29 133
Redirect to HTTPS results in Infinite LOOP 4 136
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…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

829 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