mxAjax Installation
mxAjax comes with a sets of sample examples that you can install and experiment with, they provides you with the code sample on how the JavaScript library interacts with the coldfusion code.
Here is the step by step instruction on how to install mxAjax to run sample apps
- Download the mxAjax version of your choice from http://www.indiankey.com/mxajax
- Extract the content of zip file to a particular folder. For sake of simplicity we recommend you to install it at the root folder of your website {webroot}
|
After extracting the zip file your folder structure will look like this
{webroot}/mxAjax
{webroot}/mxAjax/core
{webroot}/mxAjax/examples
|
- In order to run example code, a CF DSN has to be created
|
|
DSN Information
Datasource Name : mxajaxData
Driver : Microsoft Access
Database file : {webroot}\mxAjax\examples\data\mxajaxdata.mdb
|
- majority of installation will end at this point to check if mxAjax is installed properly browse using this url http://localhost/mxAjax/examples/index.cfm
- If you have mxAjax installed on separate folder other then {webroot}, then its better to create a virtual site by the name of “mxAjax”
- If you are running your webserver of any other port other then 80 (eg. CF Developer server usually runs on port 8500) make sure to open the {webroot}\mxAjax\application.cfm and update ajaxUrl with appropriate port number
The Basic rule is that ajaxUrl should contain the absolute address to example.cfc, so after modifying the ajaxUrl make sure you try the url directly in browser (i.e. execute it in browser window) and see there are no CF errors thrown.
Couple of examples being
http://localhost/mxajax/core/cf/example.cfc
http://localhost:8500/mxajax/core/cf/example.cfc
http://127.0.0.1/mxajax/core/cf/example.cfc
http://myserver/mxajax/core/cf/example.cfc
http://127.0.0.1/mainweb/mxajax/core/cf/example.cfc
*Absolute address always begins with http://
|