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
304 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
Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

 
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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