coldfusion-9

Coldfusion 9 Flash Multifile Upload Widget fails due to unrelated code

落爺英雄遲暮 提交于 2020-01-16 00:49:10
问题 This issue continues along with the inability to run the remaining parts of the process in the application, namely the file sorting by file type and the compression capability. I'm running into the issue that my pdf compression code is causing the multifile uploader to freeze up at 99%, still successfully uploading the first file but preventing subsequent files from uploading. Issue 1: File upload fails when I try to exclude the pdf files from the list. Issue 2: The presence of the query and

Coldfusion 9 Flash Multifile Upload Widget fails due to unrelated code

你。 提交于 2020-01-16 00:49:03
问题 This issue continues along with the inability to run the remaining parts of the process in the application, namely the file sorting by file type and the compression capability. I'm running into the issue that my pdf compression code is causing the multifile uploader to freeze up at 99%, still successfully uploading the first file but preventing subsequent files from uploading. Issue 1: File upload fails when I try to exclude the pdf files from the list. Issue 2: The presence of the query and

conditions for accessors in Coldfusion ORM

回眸只為那壹抹淺笑 提交于 2020-01-15 05:21:06
问题 Once you have loaded a component are you then able to access properties of that object with set conditions? For instance, if you have a one-to-many relationship between people and pets, you load people specifying a particular person, you then want to pull all said persons pets where the pets are of a particular species. cats vs dogs for instance. <cfset person=EntityLoad("person", {name="#URL.name#"})> <cfset pets=person[1].getPets()> is there anyway to call getPets where type='dog' or

Integrating SendGrid’s SMTP API with CFMAIL

给你一囗甜甜゛ 提交于 2020-01-14 04:12:06
问题 I am using SendGrid’s SMTP API (not WEB API) and am considering sending an email using cfmail . If I use cfmail to send the email, and want to use the X-SMTPAPI header somewhere, do you think that cfmail is a place to do that? Please clarify. 回答1: You would do this by adding a custom header, using the cfmailparam tag. As such: <cfmailparam name="X-SMTPAPI" value="{\"category\":\"Cool Emails\"}"> In context of the cfmail tag it would be as follows. <cfmail from="you@example.com" to="nick

CFDocument ignoring background color when in loop

只谈情不闲聊 提交于 2020-01-06 20:00:22
问题 I'm running a loop to build multiple PDFs. The background colors of pdf 2+ created in the loop just plain disappear. Doesn't matter if the background color is defined in CSS, as an HTML style, using hex code or just a color name. This is not an issue if I were to create 2 pdfs in a row without a loop. Any idea what gives? 回答1: This is a bug, it only effects cfdocument saved in memory, it does not effect cfdocuments that are displayed directly to the browser. If you have to save your document

Server side Validation for DateTime Stamp

陌路散爱 提交于 2020-01-06 17:58:45
问题 In my application, server side date validations were done through IsDate which is very inconsistent in behavior. I used isValid("USdate",DateVar), that works fine with incoming dates, but when DateVar is a date time stamp it fails. Values coming in DateVar could be anything, a date, a time, a date & time or even some invalid data. If I use Date mask with isValid, that behaves like isDate and of no use. How I can accomplish this. 回答1: All "dates" that will be arriving via a request - be they

Scope of a Local variable in a cfm page?

纵饮孤独 提交于 2020-01-05 22:45:28
问题 The following is on a test.cfm page: <cfscript> Local.myString = "Hello"; </cfscript> What is the scope of myString ? Will it be visible in other parts of the cfm page or just between the <cfscript> tags where it was defined? 回答1: Outside of a function, that assigment sets a variable variables.local.myString , and the scoping rules of the variables scope are well documented: About scopes: variables. From the docs: The default scope for variables of any type that are created with the cfset and

Scope of a Local variable in a cfm page?

六眼飞鱼酱① 提交于 2020-01-05 22:45:12
问题 The following is on a test.cfm page: <cfscript> Local.myString = "Hello"; </cfscript> What is the scope of myString ? Will it be visible in other parts of the cfm page or just between the <cfscript> tags where it was defined? 回答1: Outside of a function, that assigment sets a variable variables.local.myString , and the scoping rules of the variables scope are well documented: About scopes: variables. From the docs: The default scope for variables of any type that are created with the cfset and

Scope of a Local variable in a cfm page?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 22:44:11
问题 The following is on a test.cfm page: <cfscript> Local.myString = "Hello"; </cfscript> What is the scope of myString ? Will it be visible in other parts of the cfm page or just between the <cfscript> tags where it was defined? 回答1: Outside of a function, that assigment sets a variable variables.local.myString , and the scoping rules of the variables scope are well documented: About scopes: variables. From the docs: The default scope for variables of any type that are created with the cfset and

cfc that bring in additional functions via include

与世无争的帅哥 提交于 2020-01-05 21:06:27
问题 My application.cfc starts with: <cfcomponent extends="org.corfield.framework"> later on void function setupApplication() output="false" { I have // tools include "initapp.cfm"; initapp.cfm has nothing but functions in it. Things like: <!--- Helper functions ---> <cfscript> string function stripHTML(str) output="false" { return REReplaceNoCase(arguments.str,"<[^>]*>","","ALL"); } application.stripHTML = stripHTML; </cfscript> The nature of the functions is NOT associated with a session. Is