The official community for ColdFusion.
Recently active
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?
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSd160b5fdf5100e8f-4439fdac128193edfd6-7eff.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f8e.html
We're currently is using ColdFusion8 and need to upgrade the database from SQL Server 2000 to 2008. Will ColdFusion8 work with SQL Server 2008 compatibility level 90?
Our clients tend to enter both single angle brackers (i.e. "hours <4") and the HTML tags into a form field. We can not use HTMLEditFormat() on the field since they want their formatting preserved. At the same time, using a single bracket trancates the field output. Is there a way to distinguish a single "<" from the beginning of an HTML tag so we can internally substitute it with &lt;?Thanks for your advice!
Hi,I'm planning to move my ColdFusion framework to the Cloud, Amazon EC2. It will expose web services as need it for mobile devices and also regular web sites.My framework requires a relation database to manage users, authentication, etc. I want to be able to scale adding more frontend web servers.What do you think?Do you think session management is going to be a problem?What about hosting my files in amazon S3? or just in the local web server?I think the current AMI with cold Fusion 10 is a good option.I am kind of new to CF. Any advice or other considerations are welcome.Thanks a lot
My query returns item list.select itemname from tbl_listi want to disply like this1. L0125 #itemname#2. L0126 #itemname#3. L0127 #itemname#4. L0128 #itemname#example...1. L0125 Pen2. L0126 Book
I moved all my code from a Win2003S/CF8 box to a Win2008S/CF10 box and now am having issues where CF loads blank pages after a few hours of uptime. I'm noticing that the coldfusion.exe service starts around 500mb of memory, and slowly moves up to about 780mb of memory. As it tops 700mb it begins loading blank pages which can be reloaded for intended content. Once it hit 770mb it loads ONLY blank pages, and the service can no longer be restarted. It must be killed by Task Manager.This was never a problem before on CF8.I have searched far and wide for a solution, but found only this:http://stackoverflow.com/questions/7788280/memory-leak-when-redeploying-application-in-tomcatI'm not sure what code is causing the memory balloon, or even where to look for clues. None of the logs have anything in them other than the occasional missing file due to a bad offsite link, and plenty of "query timed out" errors due to CF Server crashing.I'm now restarting CF every two hours.Completely flummox
You can now buy ColdFusion AMI (ColdFusion Enterprise Amazon Machine Image) from AWS Marketplace at an hourly based pricing: Large Instance: $0.15/hrX-Large Instance: $0.30/hrIt is available on both Windows 2008 R2 and Ubuntu 12.0.4.You are also entitled to get support from Adobe and all you are required to do is send an email to the Adobe support (CFSup@adobe.com) with your AWS account number to start making use of support. Details of which can be found on Amazon's page for the AMIs as well.Here are the links on Amazon Marketplace to buy the Windows and Linux AMIs:Windows: https://aws.amazon.com/marketplace/pp/B00BQNEX5SUbuntu: https://aws.amazon.com/marketplace/pp/B00BR6SYHWHere's the link to the Product Page on adobe.com : http://www.adobe.com/products/coldfusion-family/coldfusion-amazon-web-services.htmlThe online documentation for this new offering can be found here: http://helpx.adobe.com/coldfusion/release-note/coldfusion-10-cloud.html
Traditionally, when I encapsulate code in a <CFTRY> block, I have it use the 'APPLICATION.coms.fw.error' component to handle processing of that error.This is all well and fine, but during the first call to the application, where everything is starting up, lots of processing is done reading configuration files to get pathing, etc. And that code has <CFTRY> blocks, but the thing is, they wouldn't be able to all the error component (because it hasn't yet been instantiated).So should I just do something like:<cfif isDefined( 'APPLICATION.coms.fw.error' )><!--- Handle Error Via Component. ---><cfelse><!--- Output message to screen, use CFLOG to log error and the CFABORT to halt further processing. ---></cfif>
I cannot believe how bad CFB2 is! I have been using CFB1 since beta and I love it. When CFB2 was first released, I installed the trial and quickly learned that I need to revert back to CFB1. I recently installed CFB2 on a client machine, probably more than a year later, hoping that things were better, and once again I am having to uninstall!Here's what is wrong:All of the keyboard shortcuts that I use were replaced by more difficult key combinations and I cannot customize them back because there are conflicts with stuff I don't use. I can live with this, but why?Find and replace within selelected text area DOES NOT WORK! Unbelievable! Someone told me you simply select the text and it knows to search and replace only selected text. It replaced all occurances on the page!File search used to display results in tree format with list of occurrences under each. This is invaluable and gone! You can either see a tree or a list. What g
Given a simple Word (2010) document (.docx) that is a buleted list of three lines of text using completely default formatting, CFDocument will generate a PDF that has bizzarre icons for the bullets.We have 3 separate servers that behave in 3 different ways.All 3 servers are running the same versions of Coldfusion (9) and OpenOffice (3.4.1). They're all Windows Server 2008 R2 (64-bit) servers.One server generates a PDF with clock symbols for the bullets. 0xB7 in Wingdings.One server generates a PDF with diamond symbols for the bullets. 0xB7 in Wingdings 2.One server generates a PDF with 35/17 symbols for the bullets. 0xB7 in MS Reference Specialty.Word is using the Symbol font for the bullet character, and Calibri for the body.All servers have the Symbol font listed in the Font Management of the CFIDE Administrator:symbol Symbol SymbolMT TRUETYPE PDF/FlashPaper c:\windows\fonts\symbol.ttf We're calling CFDcoument like so:<CFDOCUMENTFILENAME="C:\bullets.pdf"SRC
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.