I have created a page (print_me.cfm) with the following line of codes:
<cfheader name="Content-Disposition" value="inline; filename=timeframe.doc" >
<cfcontent type="application/word"> \
...
This is the issue.
I have a cffile that allows users to upload a picture to my site. I need to know to things. how can I make my code to accept any format whil using my naming convention. ...
I have what i thought would be a basic problem:
I'm adding elements to an array using the ArrayAppend() function:
<CFSET sectionContent=createObject("component", "web.SectionContent").in...
I've never used AJAX before but I need to in a new project I'm working on. Can you suggest any good places to read about using AJAX with coldfusion and provide some help with getting AJAX set...
The following is code to display the contents of shopping cart. I would like to number my rows based on the content of the cart. I thought I would be able to use Session.CurrentRow but it come...
Hello experts.
When i logout i have this error:
Element USER_ID is undefined in SESSION.
Any help?
The page is like this
need a solution in coldfusion if possible:
I'm creating a booking form that requires a dynamically generated reference number. A random number generator may be appropriate but a perfect sol...
Hello, I would like to read a csv file with Coldfusion and Import the data into MySQL
If I have a csv file with my header fields of
Row 1 : Date , Page Views, Hits , Bandwidth
Row 2 : ...
I basically have a set of checkboxes being populated by a query. I want to take the comma seperated list from the checkbox value and insert each value into it's own row on a one-to-many table...
Attached below is the code I'm using to upload a file to the server and save the data to a database. What I want to do is rename the file to logo.jpg when the user uploads a image. If someon...
Hello;
I have a database full of usernames (one stored below in a session variable), formatted as first.lastname. I want to split this in two, resulting in one variable with just firstname a...
How do I use the CFINPUT tag and require a 'minimum' length for a string entered?
I do not want to wait until they post to validate it with a simple cfif statement like Len(form.field) is 8...
I'm using coldfusion to search and display data from an Oracle DB.
I've included the code snippet for my search form, its a basic text input search facility and it works pretty well for wha...
I have records that are stored in SQL 2000. I can print each record individually if I click on the Print this record button. I am implementing a checkbox solution to create a multipage pdf ba...
i have a form which allows users to upload many files in one upload. i need to check the file size of each before they are uploaded. i have used CGI.CONTENT_LENGTH but this checks the combined...
I have two drop down boxes. The first box is the date type (Year, Month, Week) and the second should fill based on the first. Been a long time since I've had to work with javascript so no su...
First, I apologize for the horrendous code. I know next to nothing about CF; this project was dumped in my lap.
That said, I'm trying to access session variables named eventSessions_1... e...
I have a results/detail page set and on my results page I have a field called remarks which is typically very lengthy 500 characters or more, I want to be able to show a preview of the remarks...
I believe this is a simple question but how do I get local time from a user? Isn't there a way to get the computer variable/time for each user that visits our site? Right now I'm getting the s...
I have a form page with various radio boxes and drop downs offering the user a variety of DB filtering options (think phone book, filter by last name's initial, state, zip, etc.)
When the u...
This is so simple... I know there is a replace line of code that will fix my example...
I am saving a PDF with a variable name, and address. Lets say this is the example:
<cfset address ...
I've been reading tutorials on getting google maps working with coldfusion. Most show you how to get the long and lat from an address. I already have the long & lat stored in my database. I...
Hi Experts,
I'm trying to create a chart which counts two seperate entries on the same database table, and then outputs the values as a pie chart. I'm a total noob when it comes to coldfusi...
I have created a calendar site. But I am getting an error message for the month of October 2008. I am not sure what am I doing wrong.
Here is the error message: The element at position 4...
How to count the number of files by file type in one directory when not only one file type is searched but two or more file types, e.g.: .jpg,.gif,.png
The file types are not fixed but provid...