coldfusion-11

Keeping the values of form on page

帅比萌擦擦* 提交于 2020-01-25 00:12:22
问题 I want to keep the values chosen by the user on the form once they submit the form. This is what I tried: <cfset tx_name = ""> <cfset id_age1 = ""> <cfif isDefined("form.tx_name")> <cfset tx_name = form.tx_name> <cfif isDefined("a1")> <cfset id_age1 = form.a1> </cfif> </cfif> <cfoutput> <input type="text" name="tx_name" value="#tx_name#"> <select name="id_age1"> <cfloop from="1" to="20" index="a1"> <option value="#a1#">#a1#</option> </cfloop> </select> </cfoutput> I am getting the expected

Keeping the values of form on page

*爱你&永不变心* 提交于 2020-01-25 00:12:15
问题 I want to keep the values chosen by the user on the form once they submit the form. This is what I tried: <cfset tx_name = ""> <cfset id_age1 = ""> <cfif isDefined("form.tx_name")> <cfset tx_name = form.tx_name> <cfif isDefined("a1")> <cfset id_age1 = form.a1> </cfif> </cfif> <cfoutput> <input type="text" name="tx_name" value="#tx_name#"> <select name="id_age1"> <cfloop from="1" to="20" index="a1"> <option value="#a1#">#a1#</option> </cfloop> </select> </cfoutput> I am getting the expected

ColdFusion 11 installation unsuccessful

别来无恙 提交于 2020-01-24 23:03:49
问题 I installed ColdFusion 11 Developer version (downloaded from Adobe site 3 months trial) on Windows 8.1 and IIS7. I got this error when trying to open the ColdFusion administrator (see below). Is there a step by step example on how to fix this? HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module CustomErrorModule Notification SendResponse Handler cfmHandler Error Code

ColdFusion 11 installation unsuccessful

為{幸葍}努か 提交于 2020-01-24 23:03:27
问题 I installed ColdFusion 11 Developer version (downloaded from Adobe site 3 months trial) on Windows 8.1 and IIS7. I got this error when trying to open the ColdFusion administrator (see below). Is there a step by step example on how to fix this? HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module CustomErrorModule Notification SendResponse Handler cfmHandler Error Code

How to populate a select list using a structure inside select HTML helper in ColdBox?

天涯浪子 提交于 2020-01-24 17:17:25
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>

How to populate a select list using a structure inside select HTML helper in ColdBox?

丶灬走出姿态 提交于 2020-01-24 17:17:12
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>

cfchart not printing in PDF

落花浮王杯 提交于 2020-01-11 14:09:49
问题 I'm trying to print PDF from HTML using cfdocument. The code works fine when I access it through localhost, but when I use static IP to test it online on the same server it timeouts. I tried cfhtmltopdf it didn't timeouts but it doesn't generate the chart and shows "image missing icon". nor charts get generated nor images. text gets printed fine. And it takes like 20 to 30 seconds to generated the PDF when an image or chart is used. I tried this on CF11 32bit and 6bit both having same issue.

Encrypting in Coldfusion and then decrypting in PHP

强颜欢笑 提交于 2019-12-30 18:28:31
问题 I have a problem reproducing the same result generated in PHP vs Coldfusion. In PHP encrypting this way: <?php $key = "$224455@"; $Valor = "TESTE"; $base = chop(base64_encode(mcrypt_encrypt(MCRYPT_DES, $key, $Valor, MCRYPT_MODE_ECB))); ?> I have the result: TzwRx5Bxoa0= In Coldfusion did so: <cfset Valor = "TESTE"> <cfset Key = "$224455@"> <cfset base = Encrypt(Valor,ToBase64(Key),"DES/ECB/PKCS5Padding","BASE64")> Result: qOQnhdxiIKs= What isn't ColdFusion yielding the same value as PHP?

Creating FW/1 Service in application.cfc

喜你入骨 提交于 2019-12-25 07:10:03
问题 I am trying to create call a service in application.cfc The original code looked like It is now void function setupApplication() { ... application.objCCFRO = new model.services.setting(); application.stSetting = application.objCCFRO.loadini("standard.ini"); I am trying to convert it to application.stSetting = variables.beanFactory.getBean( "settingService" ).loadIni("standard.ini"); The documentation says sometimes you need access to the bean factory directly (such as for obtaining a

CFEXECUTE seems to not execute PowerShell in ColdFusion 11

雨燕双飞 提交于 2019-12-24 02:52:22
问题 Here is a sample: <cfset cmd="get-date -format g" /> <cfset args="-inputformat none -Command " & cmd /> <cfoutput> <cfexecute name="powershell.exe" variable="result" errorvariable="err" arguments="#args#" timeout="99" /> <p>Result: <cfif result neq "">#result#<cfelse>None</cfif></p> <p>Error: <cfif err neq "">#err#<cfelse>None</cfif></p> </cfoutput> On Windows 2008 R2 with ColdFusion 10, this will accurately put the PowerShell command's output into the result variable. After upgrading to