Author Archives: eSearing

About eSearing

Webdeveloper, Photographer, political junkie.

Select option [0] value

I have an application that allows the user to look up order detail. When they click on that order number they can open a trouble ticket. I pass most of the order information to the trouble ticket which is built … Continue reading

Posted in Code, Javascript, Snippets | Comments Off on Select option [0] value

cfselect and query values

Similar to binding to a cfc but binding with a query on the same page. Notice the query and value attributes and how they relate to the query. I added an ” All” as a default. <cfquery name=”get_last_names” datasource=”mydsn”> select … Continue reading

Posted in Code, Coldfusion, Snippets | Comments Off on cfselect and query values

Coldfusion cfoutput grouping

The cfoutput tag has a group attribute that lets you group your data for reports. The outer most cfoutput must have the query name and the group but the inner groups can not have the query name. In the following … Continue reading

Posted in Code, Coldfusion, Snippets, SQL | Comments Off on Coldfusion cfoutput grouping

The problem with setting defaults

Suppose you have a nice little yes/no selector on a form. And while you are testing you set the default value as “n”. Someday someone will come along and switch all the values to “y” in your database, and you … Continue reading

Posted in Coldfusion, Problems & Fixes | Comments Off on The problem with setting defaults

JQuery DatePicker Plugin

I had the need for a calendar datepicker in a recent project and could not use Coldfusion’s input datefield. I am building the form on the fly and loading form elements from a database using a CFC and a bunch … Continue reading

Posted in Code, Javascript, JQuery, Problems & Fixes | Comments Off on JQuery DatePicker Plugin