var url = "http://localhost/mxajax/core/cf/example.cfc";
localhost is my machine, not yours. This needs to change to the same
domain as your site.
--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
1) Turn on FireBug for the site (it's a FireFox add-on that's
absolutely essential for AJAX debugging)
2) load the page
3) note that the ajax request is being made correctly now and that it
goes to something like:
4) visit the URL above directly in a browser
5) see the error:
Parameter validation error for function RANDRANGE.
The function takes 2 parameters.
The error occurred in C:\Program Files\Apache
Group\Apache\htdocs\mxAjax\core\cf\example.cfc: line 46
44 : <cffunction name="getRandomQuote">
45 : <cfquery datasource="#request.mxAjaxDS#" name="qryData">
46 : SELECT * FROM quote WHERE id = #RandRange(1, 21, "SHA1PRNG")#
47 : </cfquery>
48 : <cfsavecontent variable="out">
This means you're running cf6.1 or lower (which you said in your
original email). The example was written for CF7, which has a
different randRange() function. Edit the example to get rid of the
third argument on line 46 and you should be fine.