Contact Me
Resources
Development Tips & Code Library
-
Recent Entries
Blogroll
Author Archives: eSearing
Coldfusion and Pausing Javascript
I had an interesting problem this week. I had a page with a CFQuery, a CFLoop to output the query, and a javascript function. The problem was that the javascript function was occurring before the loop would draw the output. … Continue reading
Posted in Code, Coldfusion, Javascript, Problems & Fixes, Snippets
Comments Off on Coldfusion and Pausing Javascript
looping over Arrays
Yippee we can now easily loop over arrays in CF8. <cfloop array=”arrayname” index=”i”> <cfoutput>#i#</cfoutput> </cfloop> #i# will show us the values in the array. You can ofcourse apply logic to the output so that dates an numbers are formatted.
Posted in Code, Coldfusion, Snippets
Comments Off on looping over Arrays
CFMail Adding multiple attachments with CFMAILPARAM
In building a project for work I needed to add potentially multiple attachments to an email. Fortunately, CFMail has a way to add header and additional information. <cfmail to=”somebody@domain.com” from = “yourstruly@domain.com” subject=”something” server=”yourmailserver”> <p>Here are your attachments.</p> <cfmailparam file=”c://yourpath/filename.ext”> … Continue reading
Posted in Code, Coldfusion, Problems & Fixes, Snippets
Comments Off on CFMail Adding multiple attachments with CFMAILPARAM
looping over column names
Occasionally I just need a dump of results from a query columns and values. I have two methods for this. The SQL (cfquery name=”myquery”) Select TOP 1 * from contacts The simple method allows me to output the column … Continue reading
Posted in Code
Comments Off on looping over column names
cfselect and bind
I got to use more binding this week. Oh what a joy. Just don’t have any errors in your SQL, your CFC, or your cfselect formpage.cfm cfselect name=”partnum” bind=”cfc:part_functions.getPartnum()” value=”partnum” bindonload=”yes” part_functions.cfc – Note brackets removed due to coding issues. … Continue reading
Posted in Code, Coldfusion
Comments Off on cfselect and bind