Skip to main content
WolfShade
Legend
April 15, 2011
Question

Complete n00b with AJaX/CF - use CFFORM data to call cfc component

  • April 15, 2011
  • 2 replies
  • 855 views

Hello, everyone.

I've been asked to do something in CF I've never done before.  Without actually submitting a CFFORM or refreshing the page, make an AJaX call to a cfc component, which will get data from the database, then display it on the same page.

I'm at a complete loss, here.  Has anyone done something like this??

Thanks,

^_^

    This topic has been closed for replies.

    2 replies

    ilssac
    Inspiring
    April 15, 2011

    If you care to understand the functionality behind the wizardry.  ColdFusion does not mind if you look behind the curtain.

    AJAX Tutorial

    http://www.w3schools.com/Ajax/Default.Asp

    W3Schools uses .NET for the server side processing in the examples.  But they are so rudimentary that they are trivial to transcribe into CFML versions.

    WolfShade
    WolfShadeAuthor
    Legend
    April 15, 2011

    I'll take a look at them, but I usually don't learn from things like these.  I'm more of a visual/hands on learner.  Thanks for the suggestions.

    ^_^

    ilssac
    Inspiring
    April 15, 2011

    They both of plenty of examples to use and get your hands on code.

    ilssac
    Inspiring
    April 15, 2011

    Many people.  So many that it has it's own sections in the documenation.

    Using Ajax UI Components and Features

    http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxui_1.html

    Using Ajax Data and Development Features

    http://livedocs.adobe.com/coldfusion/8/htmldocs/ajaxdata_01.html