ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 15th, 2012, 09:13 PM
eduski eduski is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2011
Posts: 1 eduski User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 43 sec
Reputation Power: 0
Cfimage captcha over https error in chrome

I have a website with a cart and checkout requiring a captcha that I call via a cfinclude statement. In google chrome, I get the error that The page at https://www.domain.com/checkout.cfm displayed insecure content from http://www.domain.com/captchaImage.cfm.

The code is below. Any help is appreciated.

---captchaimage.cfm---
Code:
<!--- captchaImage.cfm - generates png captchas --->
<cfset arrValidChars = ListToArray("A,B,C,D,E,F,G,H,J,K,M,N,P,Q,R,S,T,U,V,W,X,Y,Z," & "2,3,4,5,6,7,8,9") />
<cfset CreateObject("java", "java.util.Collections").Shuffle(arrValidChars)/>
<cfset strCaptcha = (arrValidChars[ 1 ] & arrValidChars[ 2 ] & arrValidChars[ 3 ] & arrValidChars[ 4 ]) />
<cfset Session.captchaText = strCaptcha/>
<cfset captchaimagepath = getdirectoryfrompath(getcurrenttemplatepath()) & 'captcha' & gettickcount() & '.png'>
<cfimage action="captcha" width="192" height="40" text="#session.captchaText#" destination="#captchaimagepath#" difficulty="low" fonts="Arial, Verdana, Tahoma, Times New Roman">
<cfcontent reset="yes" type="image/png" file="#captchaimagepath#" deletefile="yes">


---call to captcha image ---
Code:
<p>Enter the letters you see in the image:</p>
		
		  <img src="/captchaImage.cfm" id="sessioncaptcha" alt="captcha" width="192" height="40" /><br>
		  <input class="submit" type="button" name="btnRefreshCaptcha" value="Get New Image" onClick="document.getElementById('sessioncaptcha').src='/captchaImage.cfm?r='+new Date().getTime();" />
<cfinput type="text" name="captcha" id="captcha" required="yes" message="Enter the characters in the Image."/>

Reply With Quote
  #2  
Old May 20th, 2012, 07:47 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,100 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 4 h 29 m 54 sec
Reputation Power: 966
Not sure....are you using SSL for the site but not for the image URL or something?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Cfimage captcha over https error in chrome

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap