one more thing that might help speed things up here:
- radio buttons with the same name can be checked only one at the time, so, you can check the default and ensure that at least one checked button is submitted (the radio once checked can not be unchecked):
<input type="Radio"...
the cf runs the application.cfm template before any other requested template is executed; if you want to reject cfid and cftoken from url, you can specify that in the application.cfm template;
if you write something like IsDefined("url.cfid") AND IsDefined("url.cftoken") to...
REFind(), REFindNoCase will return the position of the first occurrence of a regular expression in a string starting from a specified position. Returns 0 if no occurrences are found. This example will search for numeric characters but you can replace that and search for alpha numeric characters...
if you don't want to use the cfid and cftoken passed through the url at all, you can use the IsDefined("url.cfid") and IsDefined("url.cftoken") to find out if those exist Sylvano
dsylvano@hotmail.com
you can use DateCompare() function; DateCompare() performs a full date/time comparison of two dates.
Returns:
-1 if date1 is less than date2
0 if date1 is equal to date2
1 if date1 is greater than date2
DatePart:
s Precise to the second
n Precise to the minute
h Precise to the...
I have had similar problem; this solution worked for me:
<cfset url.fileID = "142,454,228,668">
in the SQL:
...AND Orders.orderID IN (#ListQualify(url.fileID, "")#);
the ListQualify() is used to avoid errors if the passed list have any extra commas (,142,,454,228,668)...
- when user clicks on the submit button, setAction() function is called (JavaScript, client side); function will check the newOption form field and if it's not blank will assign value "addOption" to the form "a(ction)" field;
the form is submitted; on the server, cf is...
i am gonna bug in again:
omerdurdu, as you know, the coldfusion involves server side programming while the form is being filled in on the client side; with that in mind here is the approach you should take:
- user is filling the form fields 1 - 45;
- when the 46th field if filled up, the form...
go to http://worldwebspiders.com --> downloads;
download Allaire ColdFusion Forums 3.11;
that is an old CF application that is available free of charge and it looks like it is doing the same thing as you are trying to do; you can probably get a lot of "how to..." hints from it...
hi all,
here is the code I am using to send the selected file to the user:
<cfheader name="Content-Disposition" value="inline; filename=#form.fileID#">
<cfcontent type="application/unknown"...
hi ya all,
I've got the computer with win98 removed "by force"; the win2k was installed as 2nd OS and win98 folder was simply deleted; everything is working fine if user select the win2k when rebooting;
the problem I would like to solve is that win98 is still showing as a option in...
here is one way you can do this:
- on the page with 50 inputs, for every field use the ...value="#form.fieldName#"... attribute; to avoid the error you will have to define those fields; you can use <cfparam name="form.fieldName" default=""> tag to do that;
- when...
- note that if deletefile attribute is set to Yes the will will be deleted after the download operation; if you have executed the script once, see if the file is still there; for testing you can set this attribute to NO;
- ExpandPath() returns a path equivalent to the relative_path appended to...
add this code to the page with the directory listing display:
<cfif IsDefined("url.dlFile")>
<cfheader name="Content-Disposition" value="inline; filename=#url.dlFile#">
<cfcontent type="application/unknown"...
add this code to the page with the directory listing display:
<cfif IsDefined("url.dlFile")>
<cfheader name="Content-Disposition" value="inline; filename=#url.dlFile#">
<cfcontent type="application/unknown"...
those multiple product numbers will be entered in some kind of a list, right?
if so, you can use IN and ListQualify() function to extract only records that id's is found in the form field; I have removed all the blank spaces and used just "" as list qualifier; it works just fine...
this problem is related to the HTML and how it's rendered in the browser; I have had similar problem and the only solution for me was to take the form tags out of the td tags and enclose the whole table in within the form tags; if you find some other way of dealing with this problem feel free to...
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.