Entries for month: November 2005
Comparing ColdFusion to .NET
Posted by David in ColdFusion , .NET on November 29, 2005
Ben Forta recently wrote about the comparison of ColdFusion development and .NET development. Although non-programmers may think these two technologies are similar, they are by far different in comparrison. Read what he says here.
Ajax + ColdFusion = CFAjax
Posted by David in ColdFusion on November 22, 2005
Ajax is basically asynchronous calls to the server using JavaScript and loads the data in bits and pieces as needed.
CFAjax is the AJAX implementation for ColdFusion. It makes coldfusion method calls on server directly from HTML page using JavaScript and return backs the result to the calling HTML page. CFAjax comes with simple to use JavaScript API and simple coldfusion implementation that marshals the response between your CF methods and HTML page.
Jacob Munson created an excellent CFAjax application that searches thru ColdFusion tags and functions. It uses the type ahead technology to guess what you want, as you type. Check it out here.
You can also find other CFAjax examples and downloads at indiankey.com.
Case sensitive password logins
Posted by David in ColdFusion on November 18, 2005
Not only can you protect a portion of your site with usernames and passwords, but you can also verify case sensitive passwords. Here's how you do it:
login.cfm
<cfform name="login" action="login_process.cfm" method="post">
Username: <cfinput type="text" name="user"><br />
Password: <cfinput type="password" name="pass"><br />
<cfinput type="button" name="submit" value="Login">
</cfform>
login_process.cfm
<cfquery name="qVerify" datasource="your_dsn">
SELECT id, username, password
FROM users
WHERE username = '#FORM.username#'
AND password = '#FORM.password#'
</cfquery>
<cfif qVerify.RecordCount>
<cfset verifyCase = Compare(FORM.password, qVerify.password)>
<cfif verifyCase EQ 0>
<!--- Verification is good. Login. --->
<cfelse>
<!--- Case does not match. Throw error. --->
</cfif>
</cfif>
Recent Comments