|
|
JSMX
|
ColdFusion Based Framework
|
JSMX is the simplest API available for connecting your Web Applications to an AJAX front end. The main difference between JSMX and other AJAX implementations is that JSMX allows you to pass either XML or JavaScript to the API. JSMX was originally created to be used with ColdFusion applications because of how easy it is to create JavaScript Strings natively within ColdFusion (using either the CFWDDX tag or the ToScript() function). However, because there is no server-side component to be installed, JSMX can really be used with any programming language.
How Does JSMX Work?
topThe beauty of this API is its simplicity and its straight forward syntax. It consists of just one file (engine.js) which marshals requests between the client and the server via a function called http() (which is the only function you need to know about in order to use JSMX).
We can see a diagram of the JSMX API in Figure 1 below. You simply place the engine.js file in your display page. You then write two functions within JavaScript for each call to the server, a request function and a callback function. The request function makes either a "GET" or "POST" to the server by calling the http() function (which resides in the engine.js file). The server fires off the request and returns an XML or JavaScript String to engine.js which in turn converts the response into a valid JavaScript Object/Variable and returns it to the callback function in your display template.
Demo Download JSMXchat Demo
Read more...
|
|
|
|
|
|
|
|
|
|
|
|