Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2006



Tip: Looking for answers? Try searching our database.

SSL / CFChart (Flash) fix stopped working??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lizard626 - 29 Aug 2006 02:48 GMT
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") >
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.