The official community for ColdFusion.
Actividad reciente
I'm running CF 9,0,2,282541 ON Windows Server 2008 R2 and recently upgraded to Java Version 1.7.0_17I'm not sure that this is related to the Java upgrade but... My users have been complaining of not being able to log into my websites.Upon further investigation - I find that on login, something goofy is going on in OnSessionStart() of my Application.cfc My sessions are not properly starting as they have in the past. On talking to some of the users - I find that they can sometimes have success by using a different browser. Is anyone having a similar issue?Thanks,Jack
Dear Colleagues:Does any of you know, or have experience with hosting a CF application in the Amazon Cloud? Do they have CF licenses for monthly rent under a hosting plan, or do you need to provide your own license and server maintenance? I seem not to be able to find this info, where a seasoned IT/Internet person suggested it to be a possibility (hosting, that is, other than CF of which he knew nothing).Hope to hear from you.Thanks!Hans
First of all let me give you a screenshot of my home PC (running CF10 Developer on Windows 7 x64), as even this page looks different than CF servers we have at work where the update was applied with no issue.I have tried clicking on DOWNLOAD and DOWNLOAD AND INSTALL and neither do anything. Upon loading the page, I used Firebug and checked the console. It has multiple entries of:Uncaught ReferenceError: ColdFusion is not defined (Truth be told I don't Firebug check the CF Admin page often, so I don't know if this is normal. Many times Adobe's admin pages don't use standardized practices, but I just want to put this out there)I'm familiar with how to manually install updates, but I cannot find a place where Adobe offers manual download of the CF10 Update 8. Can anyone shed some light?
Hi All,I have a component with couple methods, each method is the result of query from the database.I want to do some calculations after i get the data from the server. I am lokking for a solution with good performance because I have many calculations to do.Code:<cfset myObj = CreateObject("component", "cfcs.myComponent") /><cfset firstQry = myObj.getFirstResult(arguments.A, arguments.B) /><cfset secondQry = myObj.getSecondResult(arguments.A, arguments.B) />Both query results have the same structure myID, myDesc, year_1, year2, year3firstQry have 10 rows, how can I sum the years row 3 (myID = 3) and years row 5 (myID = 5) ? and add the result of the calculation into firstQry as line 11 (new myID = 11).secondQry have one row result.How can I multiple the firstQry years row 4 (myID=4) with the secondQry years row 1 (only row myID = 1)? and add the result into firstQry as line 12 (new myId =12).I was thinking to use query of query but I wondering if it is a better
Hi everyone, I have created a Blog page on our site and am setting up a page for anyone in the company to update the blog with some text and an image. Does anyone know how to set up code so when the Browse button is clicked that it will resize the image automatically to what I want it to be with the pixel size and file size? I’m thinking having it be 200 pixels wide and height doesn't matter. Maybe have the file size at 4K or so. It would be like Facebook when you upload a large file image, but it re-sizes it automatically. We have CF version 7, so I can't use the CFimage code that's in 8 and 9. I've found something called imageCFC.resize(), but I don't understand how to use this or incorporate this into my code. This is what I have on my pages now just to upload an image file:Add Page:<td><input type="file" name="Image1" id="Image1"></td>Add Action Page:<cfif isdefined("form.Image1")> <cffile action="upload"
My ColdFusion Application has forms that are editable and upon submit the database is updated. I am using an Access database. All my forms work, except one. I have recoded it several times to no avail. I have rebuilt the table as well. When I submit the form, I get a error message - "500 internal server error, there is a problem with the resource you are looking for and it cannot be displayed". All my other forms submit the same way and have the same code except for the table name and field names and they work. When I change to method="get", I get the correct page to come up if I remove all the query code and I get my debug statement to show I made it to the page. However, when I try to see my hidden values that I am passing, I get an error telling me that I have a 500 internal server error and that my form element "ID" is undefined. As I stated before, this page is almost identical to others except for the survey content. My form has this: I am using this
I have a form that was working in CF9 but now that I've moved over to CF10, it is generating an error.<cfinput type="datefield" mask="mm/dd/yyyy" name="dtfiled" required="yes" message="Enter the date the " value="#DateFormat(dtfiled,"mm/dd/yyyy")#">I had it working without the mask, but tried it to see if it would fix the problem.I am getting the error: 10/19/2011 is an invalid date or time string.If I'm displaying the date as month day year, then the date as it is displayed is correct. Am I missing something or has something changed between CF9 and CF10?Thanks.Sue
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSCAD9638E-2D2C-48d8-9069-AE5A220B75A6.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSCAD9638E-2D2C-48d8-9069-AE5A220B75A6.html
Guys,I have the script PHP below.How I write this script in ColdFusion, sorry for the dummie's ask<?php if(isset($_POST[“color”])) { for($i = 0; $i < count($_POST[“color”]); $i++) { echo “The color “.$_POST[“color”][$i].” was selected!<br />”; } } else { echo “blablablablablablablabla” } ?>[ ]'s
How can I use jquery Datepicker in a cfm application that used iframe? where should I link css and script reference?
So traditionally the THIS scope stores variables that are used outside the component, and the VARIABLES stores, well, variables, that are private to the component, right?I ask, because in my application.cfc's BIFs (like onApplicationStart(), onRequestStart(), etc.), I make calls to other components, and there are some values that are initially stored in the application.cfc that need to be shared with these components (but I was told that I shouldn't just make these components inherit from the application.cfc)What I *WAS* doing was calling these component methods and passing the variables I *WAS* storing in the VARIABLES scope like the following:<cfset componentObject.methodName( firstArg = VARIABLES.var1, secondArg = VARIABLES.var2) />Thing is that I've found, these variables are needed rather often by a lot of functions throughout the application.cfc. Should I be storing these common values in the THIS scope instead? So
Does anyone know why none of the links to the articles here are not working? http://www.adobe.com/support/coldfusion/security.htmlFor example... the article... Top Five ColdFusion Security Issueshttp://www.adobe.com/devnet/server_archive/articles/top5_cf_security_issues.htmlThis is also true of the TechNotesThanks.
What tag or software would you recommend to use under CF 9.0.1 for the mass e-mails? We have to be able to send out about 1,000 e-mails per hour in the peak times. CFMail was not able to handle it when we've tried to incorporate it for CF MX 7. Is it better now? Is there any other product(s) that would serve the purpose and work with ColdFusion?Thank you!
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WS38f7811c62cc227c71c3c3dd135155ecceb-8000.html
Hi,After installing security updates for CF 8 Enterprise, I'm getting "No provider for smtps" errors when trying to send e-mail to Amazon SES. I also get this error if I try to send from my own server in SSL mode, however, non-SSL mode is working fine. Am I missing an smtps .jar?Thank you,Walter Hardy
We are getting feedback from users that they love our ColdFusion application, but often times need to gather data (form input) when no internet (wi-fi or cell) is available. I am at a loss as to how to begin to think about a possible solution.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSd8001ae4abdbd9112ab20a5d1350d854529-8000.html
Hi everybody, I'm trying to configure a CF Environment using Adobe ColdFusion10 on my Mac Mini running Lion Server and on the client site CF Builder 2.0 on my MB Pro running Mountain Lion 10.8.3. My Webserver uses a self-created root certificate for SSL connection. Simple .cfm files I copied to the webroot manually are as well displayed as any other .html or .php sites uploaded to the server (which I assume means that the connector is working properly). Also the CF Administrator Website is working fine using the https:// connection at port 443.The main problem I'm constantly running into is, that when I'm trying to configure a remote server in CF Builder (… defining port 443 for SSL connection) the status of the configured server is "Running" when the option for RDS "Enable SSL" is disabled. When I try to connect to the sample databases in the "RDS Dataview" with this settings I get the following message:An error has occurred. See error log for more details.For input string: "<!DOCT
Hi. Has anyone used jsoup for cleaning up user-submitted HTML?When I ask jsoup to add some extra attributes to its whitelist I get this error: "The addAttributes method was not found."The addAttributes() method requires an array. I tried using a CF array, a Java array, and even a string, but nothing worked.I'm using CF8. My test code is:<cfset jsoup = createObject("java","org.jsoup.Jsoup")><cfset whitelist = CreateObject("java", "org.jsoup.safety.Whitelist")><cfset html="<div style='font-size:24pt;'>This is BIG text</div>. This is an unwanted script: <script>alert('Boo!')</script>.<br>"><cfset myAttribsArray=[":all","style"]><cfset myAttribsArray=javacast("string[]", myAttribsArray)><cfset sanitized = jsoup.clean(html, Whitelist.relaxed().addAttributes(myAttribsArray))><cfoutput><textarea rows="10" cols="60"> #HtmlEditFormat(sanitized)#</textarea></cfoutput>The code works if I don't bother with ad
Hi,what is wrong with this code since the drop down box is not changing to display the correct value. It didn't highlighted the one i selected..<cfoutput><cfif isDefined('form.code')> <cfset page.code = form.code /></cfif><form action="#cgi.SCRIPT_NAME#" method="post" name="mycode"><select name="code" required="yes" onchange="this.form.submit()"> <option value=""><b>Select Customer</b></option> <option value="AB" <cfif isDefined('form.code')><cfif form.code eq "AB">selected</cfif></cfif>>AB- None</option> <option value="CD" <cfif isDefined('form.code')><cfif form.code eq "CD">selected</cfif></cfif>>CD- Deliver</option> </select></form><cfif isDefined('p
I may have been working too many hours lately, or I'm simply losing my mind, but I'm having a heck of a time with a very strange result from a queryI have a simple query that retrieves emails from a listSELECT emaillist_emailFROM emaillistNow let's say the above gives 50,000 recordsNow take thisSELECT emaillist_block_emailFROM emaillist_blockSay that gives 5,000 recordsNow put them togetherSELECT emaillist_emailFROM emaillistWHERE emaillist_email NOT IN(SELECT emaillist_block_emailFROM emaillist_block)Now unless I am losing it, I should get 45,000 records, presuming that the 5,000 are in both tables.The issue is, I get zero records.Any ideas?*** I Have solved the problem after digging a little deeper. There was a NULL record in the data which had been imported from XLS causing it to throw the query out, once I removed it the correct records were returned ***
Our Single SignOn agent (SiteMinder) places a custom variable, HTTP_EMPLOYEEID in the header. Using ASP, I can dump the header info and see that variable/value. But, with a similar CF script, some info, including HTTP_EMPLOYEEID is not there. Any ideas?
I don't have cfflush anywhere in web page and cookie is not being set. It was working in cf9
We need to upgrade from sql server 2000 to 2008, but for now we don't have the resources to upgrade the cold fusion8. Will coldfusion8 works with sql server 2008 even though it's not supported?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.