coldfusion

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

JavaScript enable button when checkbox checked

时光怂恿深爱的人放手 提交于 2020-01-06 17:41:57
问题 I need to have this button disabled, and when the user checks a checkbox it needs to be enabled its just not working for me at all, the button stays disabled, i know the onclick is calling the script because i placed an alert in the script and it does alert me.... <script type="text/javascript"> function goFurther(){ if (document.getElementById("ID").checked == true) document.getElementById("Calculate").disabled = false; else document.getElementById("Calculate").disabled = true; } </script>

client cert and clientcertpassword in cfhttp

こ雲淡風輕ζ 提交于 2020-01-06 15:12:59
问题 Recently I am done with the SSL certification installation procedure in the Coldfusion Truststore, I'm getting Attribute Validation error now which clearly states that I need to have cfhttp in my code. I understood that. So,I'll have to use cfhttp something like the following: method = "post", clientCert = ?? and clientCetPassword = ?? result = "xyz" I came across some posts (forums.adobe.com/message/800318) and there they have mentioned that clientcert should include file with format, .pkcs

I can't get Internet Explorer to properley refresh my ColdFusion page

寵の児 提交于 2020-01-06 13:28:05
问题 I have made this nice little table: testPage.cfm: <html> <head> <title>Test Page</title> <style> .blue{ background:#66CCFF; padding: 1px 20px; } .red{ background:red; padding: 1px 20px; } .blank{ background:#FFF; padding: 1px 20px; } </style> </head> <body> <cfform> <cfinput type="checkbox" name="filters" value="blue" checked="yes"> Blue <br /> <br /> <cfinput type="checkbox" name="filters" value="red" checked="yes"> Red </cfform> <cfdiv id="content" bind="cfc:TestCFC.displayTable({filters})"

I can't get Internet Explorer to properley refresh my ColdFusion page

筅森魡賤 提交于 2020-01-06 13:27:29
问题 I have made this nice little table: testPage.cfm: <html> <head> <title>Test Page</title> <style> .blue{ background:#66CCFF; padding: 1px 20px; } .red{ background:red; padding: 1px 20px; } .blank{ background:#FFF; padding: 1px 20px; } </style> </head> <body> <cfform> <cfinput type="checkbox" name="filters" value="blue" checked="yes"> Blue <br /> <br /> <cfinput type="checkbox" name="filters" value="red" checked="yes"> Red </cfform> <cfdiv id="content" bind="cfc:TestCFC.displayTable({filters})"

Creating a symbolic link with ColdFusion

允我心安 提交于 2020-01-06 12:35:07
问题 This is a real toughy... Google doesn't seem to have any clue... So I leave it to my lovely friends here... I'm trying to create a symbolic link of a file with ColdFusion... and I'm starting to get pretty peeved with not being able to resolve this as yet... here's my code so far... <cfset argString = '/c mklink #UserScreenPath##AdvertSubDirectory#\backgrounds\#AdvertBackgroundFilename# #Path#files\clients\#UserID#\assets\backgrounds\#AdvertBackgroundFilename#' > <cfexecute name="cmd.exe"

Coldfusion Ajax Multi-File Upload - CFFile Overwriting ServerFile

倖福魔咒の 提交于 2020-01-06 10:55:36
问题 I've taken some code from this question for the multi-file upload, which works fine but the cffile overwrites the cffile.serverFile so in the parm dump the only file name I get is the last one it uploaded, not all of them. I tried looping it, appending an array each time, but still the same problem. It seems cffile is uploading all files selected in one go. In this question the OP said he made a JSON response with the correct data but I have no idea how to do that since I can't get all the

Coldfusion Ajax Multi-File Upload - CFFile Overwriting ServerFile

試著忘記壹切 提交于 2020-01-06 10:54:31
问题 I've taken some code from this question for the multi-file upload, which works fine but the cffile overwrites the cffile.serverFile so in the parm dump the only file name I get is the last one it uploaded, not all of them. I tried looping it, appending an array each time, but still the same problem. It seems cffile is uploading all files selected in one go. In this question the OP said he made a JSON response with the correct data but I have no idea how to do that since I can't get all the

Coldfusion Ajax Multi-File Upload - CFFile Overwriting ServerFile

纵饮孤独 提交于 2020-01-06 10:54:12
问题 I've taken some code from this question for the multi-file upload, which works fine but the cffile overwrites the cffile.serverFile so in the parm dump the only file name I get is the last one it uploaded, not all of them. I tried looping it, appending an array each time, but still the same problem. It seems cffile is uploading all files selected in one go. In this question the OP said he made a JSON response with the correct data but I have no idea how to do that since I can't get all the

Publishing Crystal Reports to ColdFusion Pages

廉价感情. 提交于 2020-01-06 08:57:09
问题 I am trying to publish some reports created in Crystal Reports 2008 to the web using ColdFusion. I have read that you just need to use cfreport like this . I have tested this many different ways and all I keep getting is a blank page. Is it possible to do this? If not how do I publish Crystal Reports to the web? Do we need to have Crystal Reports Server? Any help would be great. Thanks! 回答1: That wont work, its for really old versions of Crystal way before 2008. You need to have the