6 thoughts

  1. Hey Ben, I don’t know if you’ve pointed this out, but readers will also want to know that there was another important update to that getting started area (posted after the official release of CF8).
    The "Code Snippets by Feature" section, which many will recall from CF7 offered live running examples of most tags and functions, has been substantially updated for CF8 and now included nearly every new tag and function in CF8.
    This was part of a couple of things released a few weeks ago in the "Getting Started Experience" for CF8 on the CF site. Folks may have noticed that the official release (what they downloaded) had no such changes foir CF8 in the local version of this (accessible from the CF Admin), but it is available on the web site (like that PDF, which wasn’t updated as much). More at:
    http://carehart.org/blog/client/index.cfm/2007/8/29/cf8_gettingstarted_experience

  2. Hi Ben,
    I’m jazzing up my web-apps now that I have CF8 in hand and I have a question regarding the AutoPopulate text field.
    Since this code works fine:
    <!— Get data —>
    <cfquery datasource="conferences" name="name">
    SELECT l_name AS wholeName
    FROM CONF_ATTENDEE_TBL
    </cfquery>
    <!— Auto Suggest —>
    <cfform>
    Your Name:
    <!— Populate auto-suggest control —>
    <cfinput type="text" name="attendeeName" autosuggest="#ValueList(name.wholeName)#">
    </cfform>
    Why doesn’t this work? (the SQL returns the concat. string fine when run alone)
    <!— Get data —>
    <cfquery datasource="conferences" name="name">
    SELECT l_name+f_name AS wholeName
    FROM CONF_ATTENDEE_TBL
    </cfquery>
    <!— Auto Suggest —>
    <cfform>
    Your Name:
    <!— Populate auto-suggest control —>
    <cfinput type="text" name="attendeeName" autosuggest="#ValueList(name.wholeName)#">
    </cfform>

  3. Sorry Folks….. false alarm.
    I didn’t think to check my data and look for JavaScript errors. I was hitting an old Development DB that had bad names in it like: O’Connor The single tick was killing the JavaScript 😉
    However, good reminder for all programmers, remember ALL user data is EVIL and must be filtered BEFORE you store it in a DB…

Leave a Reply to A wanna be CF developer Cancel reply