I am working with a client side programmer using Jquery/AJAX for a modal popup. This is the first time I am working with native AJAX as opposed to CF BIFs.
The client side programmer (new and not familar with CF8) invokes the server side AJAX call by using a basic HTTP call directly to a CF program :
if ($.trim(data)=="" NO ERROR etc
Basically she is calling a coldfusion program (I am writing) similar to a CFHTTP server call and tests the results of the page returned.
Now I learned you are supposed to write a remote CFC and the JQuery should invoke the remote CFC
Q: what is that syntax to invoke the cfc?
The CFC then returns data
Q: does it need to be explicitly converted to JSON format?
Main Q: What is the difference? This method we are using seems very simple and straight forward. The server only returns an error string or an empty string (no error).
Thanks in advance!