Ok, this is a weird one...
A few months ago I built a simple page that generates a CFChart in Flash mode.
This page is served over an SSL (https) connection. As I found out, I had to
use the <cfset HoursWorkedGraph =
Replace(HoursWorkedGraph,"http://","https://") > workaround in order to not get
the "This page contains both secure and nonsecure content" error message from
IE... And it worked great.
Now, all of a sudden, the fix has stopped working, and I haven't changed any
code.
The hosting service I'm with uses CF7, and is pretty good about installing the
latest updates from Adobe. Is it possible that a recent update broke something
in the CFChart or Replace( ) functions?
Here's some example code that will generate the error over SSL.
Thanks for all your help,
-Ian in LA
<head>
<title>Example</title>
</head>
<body>
<!--- Build graphs --->
<!--- This code is complicated to get around the SSL bug --->
<!--- Start saving the generated HTML output --->
<cfsavecontent variable="HoursWorkedGraph">
<!--- Generate the graph --->
<cfchart format="flash" xAxisTitle="Hours Worked" font="Arial" gridlines=2
show3d="yes">
<cfchartseries type="bar">
<cfchartdata item="July" value="12">
<cfchartdata item="Jun" value="12" />
</cfchartseries>
</cfchart>
</cfsavecontent>
<!--- Stop saving output--->
<!--- Change the swflash.cab codebase location from
the Macromedia URL for the unsecure site to the
secure site --->
<cfset HoursWorkedGraph = Replace(HoursWorkedGraph,"http://","https://") >
<!--- Output graph --->
<cfoutput>#HoursWorkedGraph#</cfoutput>
</body>
</html>
lizard626 - 31 Aug 2006 18:09 GMT
Well, I don't know why this stopped working, but here's how I fixed it...
I had to change this line:
<cfset HoursWorkedGraph = Replace(HoursWorkedGraph,"http://","https://") >
to:
<cfset HoursWorkedGraph = ReplaceNoCase(HoursWorkedGraph, "http:", "https:",
"ALL") >