473,543 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ColdFusion Forum

Coldfusion (Adobe) application server and scripting language - Ask questions about ColdFusion scripting, IDE, databases, SQl, components, CFCs, syntax, server setup, Coldfusion 6 / 7 / 8 and more.
3
5,552
thread by: dmorand | last post Jul 2 '08 by: acoder
I'm trying to copy a file which is located on my C drive over to a network path. I'm getting the error below when trying to perform the copy. The file C:\query.sql does exist on my C drive so I'm curious as to why it can't reference it. Is it looking at the web server's C drive instead?? An exception occurred when performing a file...
4
4,145
thread by: CF FAN | last post Jul 11 '08 by: wiredwizard
I want to validate this two checkbox variables on an action page and also an update page <cfinput type="checkbox" name="gender"checked> </label></td> <td>Female</td> <td><label> <cfinput type="checkbox" name="gender"> </label></td><cfinput type="checkbox" name="gender"checked> </label></td> ...
11
9,276
thread by: dmorand | last post Jul 18 '08 by: dmorand
I'm trying to retrieve the username of the user logged into a machine when a person visits my page on our intranet. I've looked over cfntauthenticate but that's not going to do what I need it to do. Is this even possible with coldfusion or should I be looking to asp?
3
4,582
thread by: Alexei Lebedev | last post Jul 18 '08 by: acoder
Hi all! How can I update only selected records from recordset at once? We have a form page form.cfm and processing page update.cfm. In form page there is a list of rows generated with <cfoutput query>. Each row contain checkbox, textfield1, textfield2. Processing page has a query procedure. I tried cfloop, but always got an error: If checkbox...
1
1,791
thread by: cfnut | last post Jul 19 '08 by: acoder
While developing my website I notice that sometimes when there is an error in my database the error page shows my connection string with the username and password for my database. Just wondering what the proper way is to prevent this from happening.
3
3,643
thread by: dmorand | last post Jul 21 '08 by: acoder
I'm having an issue with quotes and double quotes on my iif statement. I'm trying to call a javascript function but can't seem to get the syntax correct. I know it's failing because I have this setup: <a href="javascript:alert('hi');">. I don't know how I can setup the quotes in order to get this working properly. It could just be friday, but...
1
2,442
thread by: dmorand | last post Jul 24 '08 by: dmorand
I'm using Coldfusion MX7, but I don't see an Oracle datasource in my coldfusion administrator. I've looked around trying to figure out how to get an Oracle datasource loaded so I can query Oracle db's, but can't find any info on how to get this working. Does anyone know how to do this or point me in the right direction??
1
3,023
thread by: cfnut | last post Jul 29 '08 by: acoder
I recently switched over to a new hosting company and my update query doesn't work. Any ideas on what I can change to make this work? I changed it a ton of times but it would not save the file name from my form into my mysql database. UPDATE tblCust Set item1 = '#cffile.ServerFile#' where tblCust.CustID = #Session.CustId#
1
3,545
thread by: dmorand | last post Jul 29 '08 by: acoder
I have some text fields in my database, and I'm displaying them on the screen, but no matter what type of element I nest the output in, the text is being displayed on one huge line. How can I get this to display in an element in a multi-line format??
3
3,107
thread by: RobMcM | last post Jul 30 '08 by: acoder
How can the Application.cfm files within the ColdFusion MX v7 CFIDE folder be recreated without disturbing live sites on the same server? Will CF need to be reinstalled? Is there a repair utility? Are the files unique for each installation? A .vbs file was run on the server which added lines of CF code (intended to protect against SQL injection...
5
2,756
thread by: reddem0n | last post Aug 1 '08 by: acoder
Hello, I've been working on trying to figure out how to script something where if a user enters more then one search term in the same fieldbox, it would query both of them and output it to a cf page. My scripting/issue is very similiar to an early thread by an individual here http://bytes.com/forum/thread655581.html Basically in my...
1
5,020
thread by: cindy7 | last post Aug 2 '08 by: acoder
how can i read excel data and import into sql using cfm??? I have a CFM form for user to import excel file into database and save file in the folder at server location. I would like to read that excel file and import data into sql database each time the user upload the file and create new record. Any idea how to solve this problem, every...
1
5,049
thread by: Khoo Teik Heong | last post Aug 4 '08 by: acoder
Hi, I created a chart using cfchart and export it to excel. However, the chart exported cannot be displayed. This problem does not happen when i convert it to PDF. Please help.
3
5,481
Haitashi
thread by: Haitashi | last post Aug 4 '08 by: acoder
I have a query that I was using cfcontent and cfheader to output to an excel file. I think that cfreport can do that but i don't get it. Does it require reports to be created though the Report Builder? Of not, will this work? <cfreport format="Excel" query="Request.qProjects" name="projectResults" filename="ProjectQueryResults"> And if it...
5
3,166
thread by: stoosi | last post Aug 6 '08 by: acoder
Hi Guys, I need to make a pin like ADD - 00001 through ADD - 99999. I used the ID colomn in the table to generate this number like below: <cfset #Pin# = #RIGHT('ADD - 0000'& #MyQuery.id#,13)#> Now I have problem replacing the 0000 with numbers without loosing the 5 digit format. for example if the id value is 29 my pin should be ADD -...
14
3,247
thread by: chromis | last post Aug 7 '08 by: acoder
Hi, I've been trying to implement a more OOP oriented approach to dealing with user security on one of my websites, and I am trying to validate the user against an array of roles, however I am struggling with a type error: The argument ROLES passed to function setRoles() is not of type array. If the component name is specified as a type...
1
9,983
thread by: Arielle | last post Aug 8 '08 by: acoder
The delima was I had a list of numbers that I needed to find the maximum value of. Simply doing Max(ListName) did not work because the Max function requires only two parameters. What I ended up doing to get around this was converting my list to an array and doing the ArrayMax function <cfset myList = "1,3,1,2,5,2,2,3,2,3,4"> <cfset maxNum...
1
3,304
thread by: chromis | last post Aug 14 '08 by: acoder
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway (ContactGateway.cfc) - index.cfm - Deals with the business logic - display/form.cfm - Produces the form for both add and edit behaviour
1
2,041
thread by: kopiteste | last post Aug 14 '08 by: acoder
I have created a coldfusion for www.lfcsb.co.uk/Form.cfm using this tutorial http://www.fordwebs.com/cfform.cfm. However, as you will see if you navigate to my page, there are no input boxes. Could someone help me please, Stephen if you need to see some code, for the surname section, this is the code: <tr> <td align="right"><span...
3
4,564
thread by: cheapterp | last post Aug 15 '08 by: acoder
Hey Guys, I have just started working on ColdFusion, so I am relatively new to it than most of you may be. I am trying to create 'Sticky Stay-Filled' forms so that when the form is submitted, the details entered on the form show up on the page following the submit. Just FYI, the form is submitted to itself. I have done this in PHP almost a...
1
3,029
thread by: lee2732 | last post Aug 17 '08 by: acoder
I am running a website at GoDaddy where I have their least expensive plan that supports Linux/ColdFusion/mySQL. Apparently this plan supports a small number of active database connections (50). I wrote my ColdFusion code in Dreamweaver and just assumed it would take care of issues like this, but I guess it doesn't. If I have a few windows open...
8
5,255
thread by: chromis | last post Aug 19 '08 by: acoder
Hi, I'm writing a contacts section for a cms on a website, I've decided to write the section in OO code. So far I have my Contacts object and a page structure I would use for a procedural site. /com/Contacts.cfc <cfcomponent displayname="Contact" output="false" hint="Contact component"> <!--- properties: used for self-documentation...
7
2,799
thread by: ronjambo | last post Sep 4 '08 by: acoder
Hi Community, i have a problem. I want to know the original sender, when I forward a message via Outlook. Example: Person A sends a message to person B. Person B forwards the message to person C. Person C gets the message via cfpop and wants to know the original sender (person A). I tried it with queryname.header but I only see person B...
5
3,808
rcollins207
thread by: rcollins207 | last post Sep 5 '08 by: acoder
what i have to do is make sure that they only select a certain amount of items i have looked everywhere but it must be a simple thing that i cannot think of please any help would be great!! so i think that all i need to do is track the number that is selected when they click submit but i cannot find the answer please help me. ...
1
2,484
thread by: rhbourne | last post Sep 5 '08 by: acoder
Hello, I'm doing something wrong here, and it's driving me nuts. A very strange thing is happening with a query that populates an XML export function. 1. I have a query and its XML export routine sitting in a file. That file, in turn, is called by a "New Spry dataset" block in a file that my form points to. 2. When I set up the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.