Thanks for the advice. I ended up getting it to work by inserting an empty value as the last value in every array.
This is the file before I go to the report. If I'm on the fifth element of all my arrays, it would create a blank element for the fifth+1.
<CFSET...
I've got two <CFQUERY>s - each of which populate select boxes. How can I default one from the other onchange? Can I use JavaScript somehow?
<CFQUERY NAME="GetTaxCities" DATASOURCE="#session.ORA_NAME#">
SELECT...
Hello, all. I'm working with an application where the user can add a new account, premise, and service point. Once they complete this, they have the option to go back to the beginning and do another, or go to a report page. Throughout the app there are five fields that I'm building arrays...
Is there any way to get around the Microsoft confirm box to "Retry" or "Cancel" when refreshing a page? I'm trying to disable the browser's Back button by running the following script in the head of every page:
<SCRIPT LANGUAGE="JavaScript">...
Thank you all.
due to time constraints, I had to stop trying this method. I ended up adding another .cfm file (much to my dismay) to run the query against the form.value. If there is a problem I take them back to the form, otherwise I proceed to the next file.
Hopefully I'll get some time...
I am stumped.....
I have to admit, I'm pretty new at all this. This is what I have so far, but it's not liking my code AT ALL. I would really appreciate a debugger right about now.
Anyway, I'm going to keep playing with this, but just in case I'm WAY off, I thought you would be able to tell...
I'm following the logic of what you're suggesting, but I have a couple questions before I jump into this:
If I understand, you're suggesting calling a JS function, which calls a CFScript?
Why does this have to be an image instead of just a variable?
Is the page going to completely reload? If...
Hello!! I found it.....
I wanted to let you know this worked perfectly!! Thank you so much for all you time and help. (sorry it took me so long to respond) I really appreciate it. Amazing that one little word - escape - fixed it all!! Thanks,
hacole
Is it possible to execute a CFQuery onBlur of a form field?? I don't want to read the whole table, and I'd like to do a query using the value entered, to validate if it exists.
Thanks,
hacole
Well, back from the weekend...
Turns out I just needed to put quotes around my <cfoutput>.
Old code:
<cfoutput><input type="text"....value=#b_name#>
New code:
<cfoutput><input type="text"....value="#b_name#">
Whitespace problem is solved!! You were correct, it...
I thought it was odd too!! You are absolutely correct about the first page linking to the second through javascript building the URL, AND that's exactly what the URL looks like...it's all there.
Here's what I got with your code... (I had put a string.length in my javascript to check the...
Here is some more information, hopefully this will help....
(code from file1.cfm)....
<td>Quick Name:</td>
<td><input type="Text" size="40" maxlength="40" name="quick_name" value=""></td>
<td><input type="button"...
Hello out there. How do I handle whitespace in my value pairs embedded in the URL? Here is my URL:
/...PersonPage.cfm?type=2&CT=3&name=Holly%20Cole
When I try to set my variable in PersonPage.cfm, I'm only getting the part of the string up to the '%20'. (Name: Holly) I'm using...
I have found it easier to stay away from the <cfform> tag altogether - especially when wanting to utilize JS validations on fields.... Just use a normal <form> tag as you would in HTML. If you need to use any #variable.values# from your .cfm file, put <cfoutput> tags around your <textarea>.
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.