The official community for ColdFusion.
Recently active
I just learned that I need to use onRequestStart event to have my login code.My question ColdFusion pass target form to the function, so I can access all variable and controls on the form. Am I right?It fires every time user request, so it is the place to validate user have the rights to access, can I use the code here for user login in to system?If it fires every time when user request then I need pass session variavle to the function, so can I add more variables to the function or I need save some where on the form to accesss by function.I am pretty new to ColdFusion, your help and information is great appreciated,Regards,Iccsi
Hi All,My first try using cfthread. I want two calculations to run at the same time:<cffunction name="getData" output="false" access="remote"><cfargument name="req_id" type="numeric" required="yes" /> <cfset var returnArray = ArrayNew(1)><cfthread name="processQuery" action="run"> <cfset myObj = CreateObject("component", "myComponent") /> <cfset returnArray [1] = myObj.getCalculationA(arguments.my_id) /> <cfset returnArray [2] = myObj.getCalculationB(arguments.my_id) /></cfthread><cfthread name="processQuery" action="join" /><cfreturn returnArray /></cffunction>It is not returning anything. What am i missing?Thanks in advance.
Can I change Coldfusions default port form 80 to 110 and if so how? I have CF running on a windows server 2008 RT machine.
I'm using CF9 on a webserver which is also using FL and WC. I can't get all three to work at the same time. I can get CF to work but then FL and WC won't work. I get runtime error while trying to use FL and Internet 500 error on WC.It has to do with the web server configuration tool, I add a webserver to add the CF applications but it knocks out the other two programs. If I remove the webserver FL and WC work fine. I think it has to do with JRUN but I'm such a newby I have no clue how to fix this so everything plays well together. FL and WC use java pretty heavily. So when I add the webserver to run the CF applications am I knocking out the IIS? OH and I'm using Windows Server2008 RT OS and IIS7.all help is much appreiciated
Hello,I need to bind an existing website (which up to this point did not have any CF files) to an existing ColdFusion instance.I know how to do that, however, I can't afford to restart the entire web server for the changes to take effect.There are over 50 websites that can't go down just because one website needs to be added to a CF instance.My question: is it possible to add an existing website to an (existing) ColdFusion instance without restarting the web server?Environment:IIS 7ColdFusion 9 EnterpriseWindows Server 2008 64-bit
I need some help with my task, hopefully someone out there had done this before and don't mind sharing.My department is using a Visual Basic app (this app is here since before I came) and a CF web app (I'm responsible for this one).The CF app is a supplement to the VB app. Any functionality that is not in VB app. is created in CF so user can go back and forth between the two app. This VB app is maintain by sunggard and it's quite complicated.Now Sunggard is changing it into dot net web app, the VB need to retire. We'll end up with 2 web apps, one dot net and one CFBoth apps use the same tables/DB.User use the same username and password to login to both apps.,The password is hashed.Is it possible to combine both application in the login process level? meaning, when users log in to either one app they can access both app without having to login twice at 2 different places like now? how can I achieve this goal? some sample codes is really helpful. I'm not a dot net developer, I'm hired to
I got error message from while login RDS server using Dreamweaver and Report Builder.I got HTTP/1.1 404 Not Found and get Serv name or address cannot be resolved.I search on this forum and check the following packagelist.cfm and my user ID and password is valid, since I am able to get packages list.Please advise what I can check my other than the package list or anything I can do to find a solution,http://localhost/CFIDE/componentutils/packagelist.cfmYour help and information is great appreciated,Regards,Iccsi,
Hello,So I know this isn't the standard coldfusion question people ask around here but with the annoucement of the Coldfusion Conferance dates and hotel rooms I figured might as well check. I want to go and the Mandalay Bay Resort says the room comes with two queen beds. Is anyone interested in possible splitting the cost of a room?
Let me try moving this question. I posted it to the Advanced Topics for Coldfusion thread but it appears not many read discussions there as it's hard to find -- I could not find what I posted very easily. Anyway...I'm using CF9. Has anyone been successful with CFHTTP when the target URL is using a wildcard SSL certificate? I've imported the cert and full cert path into the certificate store. I don't have any problems with non-wildcard certs, only wildcard certs. Thus far I've only found one reference to this topic and it simply stated "I have never been successful using wildcard certificates on CF8 and below." Yet there is no reference as to if or how to be successful with CF9 or above.
Hi I have a page with charts. A data download page displays records to preview when they click the chart. I have taken a CFprogress bar tutorial at lynda.com and yet still have no idea how to make this work. For a few charts (that take a while to get to the download page) I need a to display a page with a progess bar and then the data detail page.I have a .cfc and progress. cfm. How do i hook this up?? Any assistance would be totally freakiing awesome!jim<!---- progress bar page---><html><head></head><body><cfinvoke component="cfc/progessCheck" method="getStatus" returnvariable="retVal"><cfprogressbar name="testbar" duration="10000" /></body></html>-------------------------------------------------------------------------------------------------------------------------------------<!--- the cfc---><cfcomponent> <cffunction name="getStatus" access="remote" returntype="struct"> <cfset LOCAL.retVal = {} /
Ever since upgrading to CF10, we've been having some odd issues with our automated ColdFusion emails. The processes always functioned properly in the past, but lately we've been getting some very out of the ordinary issues which I'll describe further below.We discover the problem usually from contacts who usually receive these emails on a daily basis with or without attachments. We'll go to the CFMAIL directory for the corresponding server and find a slew of emails stuck in the 'Undelivr' emails. In some cases, we can just move these emails to the Spool folder and they process fine, but in most cases they result in one of the two errors below:Error 1: In an email which normally does not contain a body and contains an attachment, the follow error is what we found in the logs:-----------------"Error","scheduler-1","01/15/13","14:09:56",,"javax.mail.MessagingException: missing body for message"javax.mail.MessagingException: missing body for message  
I'm writing a script to copy BLOB data from a table in one database to a table in another database. I'm able to copy non-binary data without any issues but I haven't figured out how to move binary. I would think that I could just grab it out of one database via <cfquery> and put it in the other one via <cfquery> with no manipulation but it's giving me errors. Specifically: ByteArray objects cannot be converted to stringsI've tried converting it back and forth between Base64 and strings and messing with it but I'm not having any luck. Why doesn't this work if both columns are BLOB (this is a simple demo)?<cfquery name="get" datasource="#db1#">SELECT file_binary FROM old_table WHERE id = 1</cfquery><cfquery name="set" datasource="#db2#">INSERT INTO new_table (id, file_binary) VALUES (1, #get.file_binary#)</cfquery>Thanks!
So as i was opening my presents with my family Christmas morning when my web server emailed me to let me know that a file had been created in my /CFIDE/ folder. This file was h.cfm and it was a nifty little tool used to scan files - copy files - dump SQL passwords - run commands - upload files ect....My setup is CF9.0.1 on win server 2008 with mySQL5.5 . The servers only purpose is to host a few websites for my company. I poured over my IIS logs and could not find any trace of a connection to the webserver while this was happening. I then started looking at the http.log file in coldfusion server and found that it contained 2 entries at the time of the attack. Both looked like this... note i've removed the IP of the server. This file is the file that was uploaded to my server.25-Dec-2012 6:54 AM Information jrpp-6969 Starting HTTP request {URL='http://IPAddress:80/CFIDE/h9.txt', method='get'} There was nothing before this conne
Hello,I have been banging my head on this CF8 issue for too long now. I have a string thatis of the form [~]'trespes[~] where I need to replace [~] with the escaped backslash&#92; I have tried coldfusion replace, and java ReplaceAll but whenever I put any escaped html into the fuction, replace(string,"[~]","&#92;") I get an error from CFMissing argument name. When using named parameters to a function, every parameter must have a name.If I use java ReplaceALL I get the same result. Any insight to this problem wouldbe greatly appreciated, driving me batty.. I know it must be simple.. ugh.Thanks,Bob
hi,I was trying to install cold fusion 9 on Microsoft IIS server and i was unable to install it.....due to errors like HTTP error 404.2,404.3,500.0,500.19.if i am trying to solve on error i'm finding a new one so pls help me.Need a detail explanation on installing cold fusion on IIS server
i have the following query that worked just fine on CF7 and SQL server 2000<cfquery name="getColumns" datasource="ds">SELECT Column_Name, Data_TypeFROM INFORMATION_SCHEMA.ColumnsWHERE Table_Name = 'Fields'AND Table_Catalog = 'databasename'</cfquery>now that have upgraded to CF 9 and SQL 2012 - this query does not work"Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'FROM'. Any ideas - trying to export from SQL database to an excel file - THANKS!
EnvironmentColdFusion version: CF9 32-bit (NOT the 9.01 Patch yet)Hotfix version Noneserver OS : Windows 2003 Server 64 Bitwebserver: Apache/2.2.14 (W32) 32 bitdatabase: MSSQL 2008 Express with Advanced Services 32 bitBackground1. Porting an old cold fusion code base from 2002-2006 to CF92. I am randomly but quite frequently getting 503 errors in the browser on the above environment AND a development environment running WinXP, Apache 2.2 32 bit, CF9 32 bit, MSSQL 2008 Express with Advanced Services 32 bit.The 503 errors seem random and they are frequent.These 503 errors are happening on both the application and on the CFIDE/Administrator (though not as often).No one is using this application but me. It is under test and development. Obviously, can't go to production with this problem.3. The 503 errors are showing up in the apache access and error log.Access Log70.125.50.86 - - [12/Jan/2011:06:02:55 +0000] "GET /generalsignup.cfm HTTP/1.1" 503 222 "http://w
My web service is written XML and its in dev but my coldfusion is not able to call url, I have to use CF9.1.any suggetion?
CF 10 Application Server set to automatic. It NEVER starts automatically. All other CF 10 services do start automatically.Running Windows 7.My host, running Windows Server, has the same problem.Any idea what's up?
I am having an issue with the installer on ColdFusion 8.01 in Win2008 server. I have done 5 or 6 identical installs with no problem so this caught me by surprise, The server OS is Server 2008 R2 Enterprise service pack1. I am running the install (coldfusion-801-win.exe) as an administrator in emulation mode (Windows Server 2003 service pack 1). The following is the error i get. As I stated earlier I have done this exact install, both single & multi-server, on 5 or 6 Win2008 servers with no issue. Any help would be appreciated.
Hello.When a <cfinput> field attribute is set to "datefield" it displays an associated calendar icon. It appears that a viewer must click on the actual icon to display the calendar for date selection. Is it possible to have the calendar display when the viewer clicks on the form field itself or when focus is on the form field?Thanks in advance.Leonard B
I have 2 CFINPUT DateField on the form, one is Start ate and one is End Dated. Start Date is on top of End Date.The Start Date Calendar goes behind End Date when users enter start date using Start Date control that users is unable to use calendar to enter date.I would like to know how I can control that make Start Date Calendar in front of End Date Control while user enter information.Your help and information is great appreciated,regards,Iccsi
I have a utility that lets users store custom fields (first name, favorite color, address, URL, etc).One of those fields is used to store the contact's work/personal URL.In addition, users can send their contacts an email including these fields. So an email might say: "Dear *fname*, Your *URL* is pretty cool!"Now my client wants to re-write the URL so they can track it using Google Analytics, and that's where I'm stuck.Basically, I'm struggling with how to re-write the URLs since there can be other fields for one contact that may need to be re-written.In other words, I need to check every field to see if there's an href, and if there is, replace it with another href, for *every contact*.The code below re-writes the URL only for one field and for one contact, but not if there's more than one field with an href and/or more than one contact being returned.Here is the code I'm using:<!---get user defined field info---><cfquery name="getUDFields" datasource="#attributes.dsn#">SE
During the processing of a request, we need to perform an ORM statement and a non-ORM cftransaction on 2 different data sources.Example:# Note, 'someObject' is a persistent CFC with a datasource attribute of 'DSN1'.<cftransaction> <cfset myObjects = EntityLoad('someObject') /></cftransaction><cftransaction> <cfquery name="test" datasource="DSN2"> INSERT INTO ... </cfquery></cftransaction>Whenever we hit the 2nd cftranaction block, we get the following error:Message=A transaction cannot be started on more than one datasource.This works in CF 9.0.1, but fails on CF 9.0.1 HF3, CF 9.0.2, and on CF 10.
We are upgrading from CF8 to 10 and our major application a content management software is now broken. It uses Javascript, CF, and XML. This code work perfect in CF 7, 8 and 9, but now in 10 we are screwed! I can provide more detail.Trying to debug code in firebug. The post looks like this<methodCall> <methodName>display.lock</methodName><params><param><value><string>9C7bd8c93CaCbc6A</string></value></param><param><value><string>mlongwell</string></value></param><param><value><string>31559-73666-19542</string></value></param></params></methodCall>The error we are getting is below.Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; BRI/1; .NET4.0E; InfoPath.2)Timestamp: Fri, 7 Jun
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.