The official community for ColdFusion.
Recently active
Hi, I have a cfselect that is defined as such: <cfselect name="ScheduledFollowup" > <option value=""></option> <cfloop index="fol" from="0" to="50"> <option value="<cfoutput>#fol#</cfoutput>> <cfoutput>#fol#</cfoutput> </option> </cfloop></cfselect>What I need to do is insert a "selected" attribute on the option that matches a value retrieved in an earlier query. I have tried imbedding a <cfif> statement but that doesn't work.Any ideas?
Thanks to all for past help on my CF questions...I've developed an upload application for (logged in to secure environment) users that uploads a pdf outside of the root, moves and renames the file and then cfpdf protects the file with a password. Part of the upload process inserts variables in a SQL database such as Catagory, Subcatagory, FileName, etc. The cffile move puts the file inside the root where I have a security framework. No problem with this.I have a cfm page populated (dynamically) with links to the pdf files. These links contain url handlers that pass the filepath and filename. When a user clicks a link, he is carried to an index.cfm that has the security framework and within this page I have cfpdf link to the pdf file (and sets a password) and cfcontent loading the pdf file in the browser. All of this works just fine, as it should.However... Because cfpdf sets the filepath/filename source and destination and passes this on to the cfcontent tag -- the filepath and filenam
One feature I like about IIS7 is how it uses XML files for its configuration and then allows inheritance. For example, the config which sets default values at the SERVER level can be overwritten at the SITE level (and even at folder/files levels below it)Likewise, I have a FRAMEWORK config files (XML) which sets the defaults, an APPLICATION config XML file below it, and a MODULE config file below it.Does anyone know if it's possible for ColdFusion to come up with a "final" XML object which respectively does the same thing?For example, if framework.xml had a node called <apples> and an attribute called quantity="0" and the module.xml config file had the EXACT same node at the same level with an attribute of "4", then the final XML object that is build would say 4 (since Module overrides Application overrides Framework)In the event keys were specified that didn't exist, they would be maintained, it would just be assumed that no changes were made to these nodes.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d04.html
I am using cfform with validateat="onsubmit,onserver" to catch issues for JavaScript-enabled users right away, and to catch issues for non-JavaScript-enabled browsers on the server. However, on the server side, the default error message generated by CF has a link to go "back" to fix the form, but the link is coded in JavaScript! Doesn't work very nicely for my app since the only users who would get this page would not have JS enabled. Is there any way to customize that default "back" link? (i.e., is there a template in CF admin?)
I have session management enabled on my website because if I start getting a lot of comments on my blog posts and photos, I'll probably build in logins/accounts/etc so I don't have to approve every post (my posts are moderated because any CAPTCHA that stops them stops the humans first).I have the following in my Application.cfc file:<cfscript>this.name = "cwcms";this.sessionManagement = "Yes";this.sessionTimeout = CreateTimeSpan(1,0,0,0);this.setClientCookies = "No";this.loginstorage = "session";</cfscript>I'm sure some of that will have to change if I implement accounts/login, but my question is this:When I load any page on my website, I see something like this on the end of the URL:http://mydomain.com/gallery/#.UQnJyZFDvx8I'm assuming that's the session ID, correct? I assume this because if I remove the above code from my Application.cfc file, that string vanishes.The question is, could this be interfering with the <cffileupload> tag? If I remove that co
I know that versions after 9.0.1 there is no more verity collections. I was advised that installing any hotfixes other than cummulative hotfix 1 will break verity collections. Trying to figure out if I can move forward with the recent security hotfix?
I've been having an error that is randomly plaguing me. For some reason, I get the following error message:The web site you are accessing has experienced an unexpected error.Please contact the website administrator.The following information is meant for the website developer for debugging purpose!Error Occurred While Processing Request jSecurity: The requested template has been deniedaccess to C:/ColdFusion10/cfusionl/wwwroot/CFIDE.The following is the internal exception message: access denied (java.io.FilePermission c:/coldfusion10/cfusionl/wwwroot/CFIDE read)Resources:. Enable Robust Exception Information to provide greater detail about the sourceof errors, In the Administrator, click Debugging & Logging > Debug OutputSettings, and select the Robust Exception Information option.. check the coldFusion documentation to verify that you are using the correctsyntax.. search the Knowledge Base to find a solution to your problem.Screenshot:Whenever I get this error, if I just r
Can someone help me find the link to download ColdFusion Builder 1?I can't seem to find where to download it.Is Builder 2 compatible with ColdFusion 9?Thanks!
Found quite a few items on this topic when searching the web, but nothing applied.I have a CFSELECT that searches a database for the options, and has its own blank option. On the cfselect i have a selected="". When I display the form, the selected isn't highlighted. If I don't highlight something on the field, when I click the submit button, that form field is not sent (doesn't appear in the CFDUMP. If I select the option value and press submit, it then gets passed. <cfselect name="Position_Club"required="No"message="Please assign Club Position"size="4"selected=""query="get_DropDownPositionClub"Display="Position"Value="Position_Code"queryPosition="below"Multiple="Yes"> <option value="">None</option></cfselect>Around this code I placed another cfselect with all the option values, and they do go into the form when I press select. Before I update the code, it was using flash HTML and it worked fine. It looked like:<
I have just loaded CF 10 and I wanted to create aserach collection but I'm recieving an error. The system tells me to look at the log file for more details. but I don't seem to be able to find it.. Also after researching this online it would seem that the windows servcies is not loaded. I've down loaded the standalong version but I'm not sure if this is the best course of action.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSd160b5fdf5100e8f-7210e81412a1d620a28-8000.html
Hi All,We are migrating our reports from CF8 to CF10. (uninstalled existing CF8 and installed CF10) in 32bit OS.After upgradation of CF10, tried to open our report, then we got the below error.----------------------error --------------------------The ValueList() function has an invalid parameter: DS_ODBC_LIST.entry.Parameter 1 of function ValueList which is now DS_ODBC_LIST.entry must be pointing to a valid query name.------------------error------------------------------------original code -----------------------------------<CFREGISTRY ACTION=GETALL NAME="DS_ODBC_List" TYPE="ANY" BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI"> <cfset DSNnames = valueList(DS_ODBC_LIST.Entry)> -----------------------------original code--------------------------Then tried to dump / print the DS_ODBC_List using CFoutput/cfdump then we got error like:Variable DS_ODBC_LIST is undefinedin CF Administrator the tag CFREGI
Ok, so I’ve recently installed Coldfusion 10 onto Windows 7 Pro 64 bit and I’ve enabled IIS within Windows.In addition, I’m running the Fusebox 5.5 framework which runs all my sites locally. I’ve included some minor customisations which permit me to utilise only one install of the framework and still access all my sites. Now having said that, I do not believe that Fusebox has anything at all to do with the problem I’m having. Indeed my old install on my old pc still runs fine. It’s running Win7 Pro 32 bit and coldfusion9!On the new setup I can reach all my links on all my sites by simply typing the full url in manually or by using a redirect. I’ve made use of the config.web file to “Rewrite” Search Engine Friendly links, such that my links look like http://localhost/about instead of http://localhost/index.cfm/fuseaction/main.about but on the new machine, I keep getting the home page displayed whenever I set the action to "Rewrite". This is equivalent to http://localhost/ I certai
Hi,I cannot use joins in query of query, I try the old method using the ( + ) but no luck "Query Of Queries syntax error. Encountered ( + )."Here is an example of my query code:select p.part_id, s.supplier_name, s.second_namefrom part p, supplier swhere p.supplier_id = s.supplier_id ( + )and p.second_id = s.second_id ( + );PART SUPPLIER_NAME SECOND_NAME---- ------------------------P1 Supplier#1 AP2 Supplier#2P3P4How can I do the same in query of query syntax?Thanks!
Hi,I'm trying to install solr collections for my sites unde CF9, so I installed Solr Server, but when I try to create a collection in the administrator, I get this error :« fr_FR. must be one of the ColdFusion supported locales ».But fr_FR is the Java Default Locale in the CF administrator.So what's wrong?
I have done some research on cfselect validation being useless but I have a hard time believing it. I have tested it on my own and cannot get the tag to work.How do I get cfselect to require a selection?<cfselect name="bobby" required="yes" message="Select something please."><option value="" selected></option><option value="red">red</option></cfselect>Doesn't work... allows me to select nothing without a prompt
We're trying to update from Java6 to Java7 on our ColdFusion 8 server, and we keep getting runtime error 2. I suppose this has to do with a lack of support for Java7. I could really use a simple answer to this, as we will be needing to consider upgrading to CF10.
Hi All,Having trouble when I upgrade to CF 10.We have Windows 2008 R2 64 Bit.In CF 9 I followed the instructions on how to use MS Access in CF on 64 Bit and all worked well.When I upgraded to CF 10 the Datasources would not work.I then tried to recreate them and still no luck.Can anyone help me with this problem?At present it is not possible to upgrade the database, so I need to use MS Access.RegardsKen
I have a form with mutiple text fields for user to enter email addresses. I don't want them to enter the duplicate emails so created two lists here Existing_EmailList: list all emails in the table. Current_EmailList: all from the form (included from table and new email just enter) I've tried to do ListContains, and Listfind but none of them work. Can you help? <cfset Existing_EmailList = valuelist(getCurrentEmail.email, ',') />test@test.com, yes@yes.com, no@no.com <cfset Current_EmailList = arguments.email /> test@test.com, yes@yes.com, no@no.com,no@no.com,one@one.com <!---<cfif ListContains(Existing_EmailList, #Current_EmailList#)>---><cfif Listfind(Existing_EmailList, #Current_EmailList#)> <cfset duplicate = true><cfelse> <cfset duplicate = false></cfif> Thanks
Hey I have a form that uploads a file. I am having trouble with some of the code and hoping someone can help. FORM FIELD <tr> <td><strong>Upload Submission</strong></td> <td><input type="file" &
I am trying to install secruity hotfix on Red Hat 5 server running coldfusion 9.0. I am having trouble with the .zip files... Any suggestions?
The payment page on our website is passing credit card information into a conformation page as form variables. The credit card company requires us to pass all of these form variable to their site for validation.we pass these form variable using hidden field such as this : <cfinput type="hidden" name="CCNo" value="#Form.CCNo#">The problem is, when I did view source from my browser, I could see all of the credit card information. I'm sure this need to be changed immediately butI can't think of a way to make this transaction more secure.I seems that he credit card company wanted us to pass all of these information as form variables. Is there ways to make passing form variable secure, where users can't see the values from view source??Please help
Hello, everyone.The project that I am working on in the dev environment is connected to an Oracle 11g database, but the production side is Oracle 10g.I have a page that is erroring in production (but not development) when it gets to a date that it needs to display.A co-worker mentioned that, in 10g, if a date/time is being SELECTed, you have to put it in to_char(), so I did that.But it's still erroring, and I'm not getting an error message, so I'm assuming that I have an incorrect format for the date in the SELECT.What is the proper format for SELECTing a date/time when using to_char()? Right now, I have SELECT to_char(create_date,'MM-DD-YYYY HH:MI') FROM tableA . Is this not correct for CF to output?Thank you,^_^
I've just noticed a problem with retrieving CLOBs in my ColdFusion applications. Any query that should return a CLOB is suddenly returning an empty string. I noticed this shortly after upgrading from Oracle 11.2.0.2 to 11.2.0.3. My best guess is that we are using driver version 3.6. I notice on the DataDirect web site, they list Oracle 11g support for version 3.7, but I don't see any reference to 3.7 on Adobe's website so I don't know if I can upgrade to it.I don't actually know if the Oracle point version upgrade was what caused this or not. Has any one else experienced this problem?
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.