r937,
I agree with you on that format, but how do you go from what I have to the format you recommend? Is there a tag in coldfusion that changes format?
Thanks,
Craig
Well, I kind of found what I wanted but not exactly. I found a javascript that replaces a character via the 'onblur' function. It works when I want to replace "A" for "B", but when I want to replace "/" with "-" it doesn't work. Anyone have an idea on a work-around...here is the code:
<script...
Hi,
I am trying to format a date time text field. Right now the customer chooses a date and time from a pop-up calendar, who's value is then inserted into a text field, example: 07/17/2006 03:36:08
I am trying to format that time so if can be used as a filename but retain the date/time. So I...
NorthStarDa,
After trying every way possible and still not getting any success, I got it working via a work-a-round. I instead used FlevOOware's behavior that let's you enable/disable objects. I would have used this before, but the problem was FlevOOware's behavior didn't let you chose to...
Nevermind, I figured it out. I was trying to insert a variable in the file form field's upload destination.
My original statement was:
destination="C:\...\file.#PAM_ID#.jpg"
But instead I have to have this:
destination="C:\...\#PAM_ID#.jpg"
The #'s have to be at the end of the variable. But...
Hi,
I have been searching on how to utilize text that has been input into a text field. I am trying to create a variable based on what the end-user types into the text field. So if the user types in "apples" into the text file, I want to assign that value a variable.
I thought it was the text...
NorthStarDA,
I took some time and tried what you suggested. I took out the cfoutput query and hardcoded the ID. I then checked the page sources to confirm the filefield's name in the brower was matching up with my hardcoded filefield name. So this is what I had....
Above the webpage's...
Hi,
I have been searching all over the net on how to disable a form field via a javascript command. It seems pretty straight forward but for some reason I can't get it.
Here is what I have done based on my research so far:
Above the webpage's body.....
<cfoutput query="rsPamInformation">...
Hi,
Here is the error message I am getting:
Invalid CFML construct found on line 207 at column 114.
ColdFusion was looking at the following text:
#
The code it is referring to is:
207 <cfif isdefined("form.upload_#rsPamPic.PAM_ID#") and form.upload_#rsPamPic.PAM_ID# NEQ "">
208 <cffile...
Rob,
I thought of using a cfloop but the <cf query> loops by default, correct? How do I get it to loop via a cfloop and with a cf query without creating numerous file upload fields?
Here is a glance of my current code:
<cfoutput query="rsPamInformation">
<cfif...
Hi,
I am trying to upload one file to multiple directories using one file upload form. The directories are alreay created and based on the product's id, where the directories are to be uploaded to are based on a recordset.
I tried using a <cf query> and inserting the file upload inside of it...
Falconseye,
I tried your last recommendation but that will always return a "yes" result.
Here is some of my code copied so you might get a better idea of what I am trying to do:
<cfoutput query="rsPamInformation">
<tr>...
Hi,
I am trying to create a dynamic variable created in a dynamic table.
My code is:
<cfoutput...
400 <cfset dad = rs#PAMInformation.PAM_ID#>
401 <cfif Success_#dad# EQ "yes">
402 Uploaded Successfully!
403 <cfelse>.....
The error message I am getting is in line 401 where it says...
Kevin,
I have realized the coldfusion statement
<cffile action="upload"destination="/path/to/some/directory/#createUUID()#.gif" ... />
doesn't care what type of file it is, but it creates a directory within a directory. So if I am uploading the file "egg.jpg" to "/desktop/folder" the above...
Kevin,
Thanks for your tutorial! I am working on it now. For the renaming tag, the issue I am having is what if I don't know the exact type of file the user is uploading? Here is a passage from a website I read:
---------------------------------------------------------
Renaming Files As They...
Kevin,
Thanks for the code. I think I found a work around, but while it works it definitely is not as stream-lined as yours. I am going to print it out and try to get your idea, as it doesn't require as much hard-coding.
One of the last parts of my website that I can't figure out it how to...
Hi,
I am trying to create a dynamic table with multiple rows, with a file upload field inserted so each file upload field is assigned to a product ID. One form and one submit button surround all of this, where upon submitting, each file upload field uploads its respective file to its respective...
Craig,
I am going over the code and trying to figure this out pretty much all night. I think what is happening is the form's action submits to itself, then updates the database, and then goes back to my dynamic table via the java code you gave me. But once it goes back to the dynamic form page...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.