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
296 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now