coldfusion

Coldfusion CFDOCUMENT creates a red X

你。 提交于 2019-12-11 06:38:24
问题 I have an issue with a server to server call with ColdFusion. Suppose I have two servers, each with a file: www.Content.com/webpage.cfm www.Badge.com/badge.jpg My source code looks like this: <cfdocument format="pdf" pagewidth="11" pageheight="8.5"> This is a simple PDF that was created to show issues with content generation on the server. This PDF uses an http:// reference to the badge server to show an image of a badged team member. <BR /> <BR /> <img src="https://www.badge.com/badge.jpg" /

com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler

做~自己de王妃 提交于 2019-12-11 06:25:41
问题 I'm upgrading from ColdFusion 8 to ColdFusion 9. I have a Java class that I call from CF which reads and parses the contents of an mbox mailbox file. The class works fine with CF 8, but it's throwing an error in CF 9. The error is: com.sun.mail.handlers.text_plain cannot be cast to javax.activation.DataContentHandler The error is happening at the point where the Java code is calling the getContent() function from javax.mail.internet.MimeMessage. Based on the MIME type of the message, I'm

sdelete.exe is not working with cfexecute

此生再无相见时 提交于 2019-12-11 06:18:54
问题 I am trying to run sdelete.exe (http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx) using cfexecute, but I think cfexecute is not even running that command. It's not giving me any permission error. And I have given all admin privileges to ColdFusion service -> logon tab. The following is the line that I have in my .cfm page that run successfully but doesn't delete the file: <Cfexecute name="C:\Inetpub\wwwroot\sdelete.exe" arguments="-p 2 C:\Inetpub\wwwroot\Deepak\testP\removeme.txt

count total records for each user

风格不统一 提交于 2019-12-11 06:05:51
问题 I have this code that pulls all users with open requests. I need to show a total for each assigned buyer. <CFQUERY NAME="allbuyers" DATASOURCE="procuresource3"> SELECT * FROM allorders3 WHERE open = 'y' order by assignedbuyer </cfquery> <cfoutput query="allbuyers"> #assignedbuyer# #prn# </cfoutput> <cfoutput> Total: #allbuyers.RecordCount# </cfoutput> The output is all records. I need a total for each user. Something like this below: Christine - 301366 Christine - 300729 Christine - 300731

Coldfusion datepicker dd/mm/yyyy but MySQL stay with format yyyy/mm/dd

只谈情不闲聊 提交于 2019-12-11 06:05:36
问题 Datepicker is an option for user easy to pick the date to fill the form. In coldfusion, there is a fill form that need to use datepicker and after user selected the date and fill the form with format yyyy/mm/dd by default format which is MySql can read. If i change into dd/mm/yyyy and click save into MySql will get error because from what i know default format for MySql is yyyy/mm/dd. <input type="text" name="Date_joined" size="auto" style="border:0px"required="yes"> This is the function to

JQuery Submit To ColdFusion ActionPage

≯℡__Kan透↙ 提交于 2019-12-11 06:04:13
问题 I have an HTML FORM element that is dynamically created from a CFLOOP tag. Each form is unique and has a submit button that fires a Jquery script that posts to an actionpage. There is a hidden form field which is assigned a unique record ID that the actionpage uses to execute the delete query. I am recieving this error message in my browser's console window: 500 (Invalid data 528,529 for CFSQLTYPE CF_SQL_INTEGER.) Those are the unique record ID's that are assigned to my form's hidden input

Coldfusion Google Maps and Jquery

点点圈 提交于 2019-12-11 05:52:55
问题 I have a google map which has dynamic markers and info boxes from a coldfusion query, i would like to be able to open the infowindow from a link on the page, i am using jquery for that but it is not working, what is the best way to do it. My Script: var map; var lastinfowindow; function initialize() { // Create an array of styles. var styles = [ { stylers: [ { hue: "#0b9cc1" }, { saturation: -20 } ] },{ featureType: "road", elementType: "geometry", stylers: [ { lightness: 100 }, { visibility:

Force cfmail tag to send from a specfic server IP address

耗尽温柔 提交于 2019-12-11 05:46:08
问题 Here is my server set up: Web Server: ColdFusion 10 u10 64-bit, Windows Server 2008 R2, multiple public/private IP addresses. Mail server: Is a different Windows 2008 R2 server. Keeping it simple for this question, I have two web sites (this is just theory; using private IPs in example). Site 1: 10.10.10.1 Site 2: 10.10.10.2 I'm sending mail using the cfmail tag from Site 1 (10.10.10.1), but when I look at the mail headers of the sent emails and the SMTP log on the mail server, it says that

Trying to convert JSON HTTP post to CFHTTP post

孤街浪徒 提交于 2019-12-11 05:45:49
问题 I am trying to properly code a call to the Firebase Cloud Messaging REST API though CFHTTP, by recreating the output of successful Firebase console post. Below is what the console states is the proper code POST /fcm/send HTTP/1.1 Host: fcm.googleapis.com Content-Type: application/json Authorization: key=AIzcXE cache-control: no-cache { "to": "e5kpn8h9bR95NuXVHTOi50bCURG0BS4S6ccUm3X5q", "priority": "high", "notification" : { "title": "", "body" : "This is the actual message content", "sound":

ColdFusion: how to check 15 days past the submitted date?

北城以北 提交于 2019-12-11 05:45:47
问题 I saved several accounts in the database. I want to email the accountsdd that have been expired for 15 days. In another word, if the submitted day (date format: mm-dd-yyyy) is 15 days older from today's date then send an email. How do I do it? Any info is greatly appreciated. Thank you. 回答1: you would want to use the dateDiff function <cfif dateDiff('d',submittedDate,now()) GT 15> If your date is really stored as mm-dd-yyyy instead of a date/time object then you would need to use the