James,

>OK - I'm stuck :)
>
>I'm implementing Dan's plugin from here:
>http://www.pengoworks.com/workshop/jquery/autocomplete.htm
>
>And the code calls the autocomplete_ajax.cfm page directly - but in
>Mach-II I can't do that.  Can I call a .cfc instead?
>
>
>       $("#CityAjax").autocomplete(
>               "autocomplete_ajax.cfm"
>       );

You should be able to call a Mach-II file just fine. Just use <cfcontent
reset="true" /> to clear the output buffer (you might need to set the
content type as well.)

Here's a technique Raymond Camden uses to use Mach II w/Spry and it's AJAX
calls. The only real difference between what Raymond's doing and what you're
doing is instead of returning pure XML, you're just returning a pipe
delimited file.

http://ray.camdenfamily.com/index.cfm/2006/8/22/Using-AJAX-with-ModelGlue

Also, make sure you're using a tool where you can monitor the HTTP
traffic--this will help your debugging immensely. I recommend Firebug for
Firefox and I really like Fiddler HTTP Debugger as a general Windows HTTP
monitoring proxy.

-Dan

Reply via email to