The official community for ColdFusion.
Recently active
Hi,We are trying to update an existing MSSQL DSN. Can we just overwrite the DSN to update it? Secondly, the timeout and interval values never update, and these are the values we want to change. Is this a bug Adobe? Do you have an example of a MSSQL DSN update. The examples on the Adobe site do not work - the interval/timeout values are not updatable. We run CF10 update 11 on IIS8.Thanks,Mark
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fcf.html
I have a simple CFLOCATION redirecting to a page with a fixed value of 15 as id<CFLOCATION URL="http://www.MYWEBSITE.com/index.cfm?id=15">When I hit the page locally it works fine, the receiving page can see the value of 15 in id.However, when I run the same page on the server I get an error that the url.id does not existNot sure what is causing this, could it be a config issue in the CF admin?ThanksMark
In short, I want to allow users to upload images from a local computer or url. So, what's the best aproach to secure my application, more specifically to block all file extensions except those in white list. I do not want to rely on mime type simply because it can be easily faked and offer false sense of security.I would like to pass data with jquery, the code would look something like this $.ajax({ url: "cfc/uploadImg.cfc", dataType: 'JSON', data: { method : 'uploadImages', returnformat : 'JSON', post: $("#title").val(),&nbs
We have a legacy ColdFusion application using 150 client variables to manage session state. The client variables are centrally stored in a SQL Server database within a 6 (CF9) application server clustered environment using a round-robin load balancer.The problem is when the code updates a client variable with a new value, the old value is still being used and displayed even though the new value is updated appropriately in the CData table. This only happens intermittently in an average of 1 out of 1000 updates being made to the client variable using the cfset tag.Race conditions and caching issues are possible explanations. We "suspect" that the old value is still being cached on one of the 6 application servers. Adobe's documentation clearly states that the client variables are cached into memory but does not go into further details. 1) Has anyone also experienced this issue and found a good resolution?2) What are the implications of moving to a sticky session while we keep using
hi,i am using the mysql aes_encrypt function for encrypting data in the database.i.e. a sample update query that i have:<cfquery name="updateUser" datasource="#application.datasource#">UPDATE usersSET users.name=AES_ENCRYPT('#form.name#', '#application.master_key#'),users.contact=AES_ENCRYPT('#form.contact#', '#application.master_key#'),users.town=AES_ENCRYPT('#form.town#', '#application.master_key#'),users.role=<cfqueryparam value="#form.role#" cfsqltype="cf_sql_integer">WHERE users.id=<cfqueryparam value="#form.user_id#" cfsqltype="cf_sql_varchar" maxlength="50"></cfquery>this works fine and i then successfully retrieve the data using the following:<cfquery name="getUser" datasource="#application.datasource#">SELECT users.id, users.role, CAST(AES_DECRYPT(users.name, '#application.master_key#') AS CHAR(50)) name_decrypt,CAST(AES_DECRYPT(users.contact, '#application.master_key#') AS CHAR(30)) contact_decrypt,CAST(AES_DECRYPT(users.town, '#application
Just how badly could Adobe make an IDE for CF? In Dreamweaver if you want to run an <cfif> statement with 'structkeyexists' then you get perfect code hinting. So try typing <cfif structkeyexists( .... and DW will show you what parameters the structkeyexists function expects.Now do the same in CF Builder and it doesn't give you any code hinting whatsoever!Getting a little tired of Adobe's product team now.
Hi to all. Going to be out of internet service for 10 days and I still need to code. I have installed CF development server on my desktop and I have SQL server Express for the database. Now what do I do? I have a DSN set on the CF Server and I should be pointing to the DB. Where do I call the http app and how does it point to the CF server. I have been coding in CF for 11 years.TNX John
I am new to CF. I am trying to create a report using a query to a table containing UserNum, AccountNum and TransactionDate. The report will include Transaction Month/Year and if the transaction Month/Year is the same keep it in one table, if different, place it on another table.Something similar to the screenshot below. Any assistance is highly appreciated.
It seems the Security section of my CF10 Administrator is missing a number of options. I have users enabled, but I can no longer find where to manage them. I'd also like to enable RDS for some development purposes, but its not listed under "Security" either.I know its something really simple and I've search and searched online to no avail.Any pointers?Thanks.
i want to do something very simple: when session expires, automatically redirect to a login page.onSessionEnd looks like the logical choice, but i wasn't able to make it do anything at all!any example that can show this function can do stuff is welcome, i've tried a bunch of them already, nothing works.<cfcomponent output="false"> <cfset this.name="testApp" /> <cfset this.sessionManagement = true /> <cfset this.applicationTimeOut = CreateTimeSpan(0,0,0,20) /> <cfset this.sessionTimeout = createTimeSpan(0,0,0,20) /> <cfset this.clientManagement = true /> <cffunction name="onSessionEnd" access="public" returntype="void" output="false"> <cflocation url="login.cfm"> </cffunction></cfcomponent>
Our agency has been running CF in distributed mode since CF6. We know how to use the JRun Connector with multiple IIS 6 web sites on multiple physical hosts to connect to multiple CF clusters hosted on separate physical servers. I am doing a test installation with a fully licensed version of CF10 Enterprise to make a recommendation to management as to whether or not we should upgrade to CF10 when we move to WIndows 2012 R2 and IIS 8.5 in 2014 or perhaps stay on CF9.0.x for a few more years & skip CF10. CF9 has been stable for years. There was a lot of help documentation with the JRun Connector and technotes regarding how to run ColdFusion in distributed mode; unfortunately, I cannot say the same for CF10 and the Tomcat connector. I do not want all web sites to be configured for ColdFusion; some of the web sites are purely .NET.I tried the manual configuration of the connector, but the server returns the dreaded "Incorrect function" error me
Hi All,Is it possible to set the multiple datasources on a Application.cfc using this.datasouce attribute? CF 9, from application.cfc, you can set <cfset this datasouce ="myDSN1" > and no need to specify the DSN in the query. My question is if I have multiples Datasouces, how can i set them up in application.cfc? <cfquery name="qDoctype">select * from type</cfquery>Thanks
I am trying to install CF10 Update 11 but it is complaining that the jar file is invalid or corrupt. I have attempted to download it now on 3 different computers with the same result on each.
Hi,I would like to force IE using compatibility mode to visit webpage. However, after I set the custom header "X-UA-Compatible: IE=EmulateIE9", it stills does not work. Only .NET project can be auto applied compatibility mode.Is there any setting I have missed for setting ColdFusion webpage to use compatibility mode?Thanks.
I have logout link on the index.cfm and check IsDefined in Application.cfcin OnRequestStart.Should OnRequestStart running every time user click go to the form, for this case pass link index.cfm?Logout and CFLOGOUT trigger?For some reason, when user click the link, it still running index.cfm and user still login.any information help is great appreciated,Regards,Iccsi, <p><a href="index.cfm?logout">log Out</a><p><cfif (IsDefined("Form.logout") )> <cflogout></cfif>
So when we have created our coldfusion 9 instance on solaris all the files and settings of the master instance are copied except the jvm.config file. This means that any changes made here are used for all instances of ColdFusion on that Node. Now I want to play with memory settings for fine tuning of Application performance and I want to do it on one single instance. I want to know the process of creating individual jvm.config files for each instance.ThanksPradeep
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7c30.htmlI followed above link to create a user login function.I want to it shows user welcome message and set login input invisible and give user logout button to logout.It gives me login form, but it does not show welcome message and login input still on the form.Here is my code which is exatly from above link.Can you please help me to see any mistake in my code or modify the code to make login to show welcome message and invisible login input and give user logout button?Your help and information is great appreciated,Regards,Iccsi,<cffunctionname="OnRequestStart"access="public"returntype="boolean"output="false"hint="Fires at first part of page processing."> <!---Define arguments.---> <cfargumentname="TargetPage"type="string"required="true"/> <cfif IsDefined("Form.logout")> <cflogout> </cfif> <cflogin> <cfif not isdefined
We're upgrading from CF8 to CF10. One of the things I always liked about Coldfusion was that it gave some pretty detailed error messages by default, so that you could see roughly where your code was exploding at.I'm working through updating the places in the code where there's things not compatible before I upgrade on the server, but these generic error messages are pretty useless. Is there any way to get the older style of error messages back in CF10, atleast on the development machine? I'm using the built in web server.
I cannot get past the server home field. I'm using IIS as a webserver, not tomcat. I've tried C:\ColdFusion10, C:\ColdFusion10\cfusion, C:\ColdFusion10\cfusion\bin, none work. I specified jrun on the previous page but I don't see a c:\jrun folder either.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusionBuilder/Using/WSf01dbd23413dda0e1736ebc1213a528ab0-7ff8.html
if the project is not in the document root, how can I create a project in document root? Normal we create a new project in Navigator of CFB. and how to create a linked folder to the document root ?May anyone help?Thanks.
I've taken a .jar file that contains classes used with the HSBC CPI gateway - does things like hash encoding of data.It seemed to work well with cfmx7, but I had a bit of trouble getting it recognised by cf10.However, it is now recognised. I had to do the following:1) Put cpitools.jar into <WEB-INF>/lib2) Tag Name: cfx_HSBCHashGenerator, Class Name: com.clearcommerce.CpiTools.security.HashGenerator3) Restart CF (not 100% sure this is necessary)4) Call a script with <CFX_HSBCHashGenerator SharedSecret="#ss#" HashElement="#datainput#">However, I get this error message:A ClassCastingException occured. The CFX custom tag CFX_com.clearcommerce.CpiTools.security.HashGenerator needs to implement com.allaire.cfx.CustomTag interface. Ensure that you add this to your custom class.Now, I know that the .jar file was just fine in MX7. Is this a change for CF10, or is there something else going on? Thanks for any help - I'm tearing out the little hair I have over this one!
I have CF10 Developer version on my machine and CF 9 is remote server.I have CFSTOREDPROC works on CF10 local developer version, but CFSTOREDPROC does not return data on CF9 Remote server.Both CF9 and CF10 connect to the same database server and running exactly same code nad stored procedures, because it is same source code I just use Dreamweave to put 2 different web server.I would like to know any thing I can check between local and remote server using CF9 and CF10 makes CFSTOREDPROC does not return data.Your help and information is great appreciated,Regards,Iccsi,
ColdFusion is awesome for my work. I can make anything I want with it and seeing as 99% of my work is making web applications, I haven't needed to look elsewhere.I was just wondering why anyone would need to learn Java, if you already know ColdFusion... I understand that ColdFusion runs on Java, but is there anything special I could do with Java that is not possible in ColdFusion for use in websites?It intrigues me because I have to cover the work of an ASP.NET developer, and when I was looking at his C# code (which looked very similar to Java) it made me cry to think people make websites in this way. Compared to ColdFusion it looks archaic but then I remember that CF works with Java so I thought about looking into learning Java. But is there any advantage to me doing this?
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.