Difference between revisions of "Ajax Client"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
 
(Architecture)
Line 1: Line 1:
 
==Architecture==
 
==Architecture==
The server serves mostly static files (HTML, CSS, JS, images), which constitute a static framework of the web application. The client accesses the server to get static files, and to get dynamic data using REST conventions, and renders proper HTML. A Javascript client framework like [http://dojotoolkit.org/ Dojo] or [http://qooxdoo.org/ Qooxdoo] can be used to build the AJAX client base on the existing Swing client structure. Servlet can be used to served the dynamic data needed by client using REST convention. Alternatively, Javascript RPC can be use for transfer of data between server and client.
+
The server serves mostly static files (HTML, CSS, JS, images), which constitute a static framework of the web application. The client accesses the server to get static files, and to get dynamic data using REST conventions, and renders proper HTML. A Javascript client framework like [http://dojotoolkit.org/ Dojo] or [http://qooxdoo.org/ Qooxdoo] can be used to build the AJAX client base on the existing Swing client structure. Servlet can be used to served the dynamic data needed by client using REST convention. Alternatively, Javascript RPC can be use for transfer of data between server and client. There should be no changes required on the current ADempiere core.
  
 
==Dynamic Data Format==
 
==Dynamic Data Format==
 
[http://www.json.org/ JSON] instead of XML is recommended as it produces more compact representation , it is blazingly fast to parse on a client — essentially simple JavaScript eval() would do, and it is very simple to parse on a server too.
 
[http://www.json.org/ JSON] instead of XML is recommended as it produces more compact representation , it is blazingly fast to parse on a client — essentially simple JavaScript eval() would do, and it is very simple to parse on a server too.

Revision as of 23:02, 22 February 2007

Architecture

The server serves mostly static files (HTML, CSS, JS, images), which constitute a static framework of the web application. The client accesses the server to get static files, and to get dynamic data using REST conventions, and renders proper HTML. A Javascript client framework like Dojo or Qooxdoo can be used to build the AJAX client base on the existing Swing client structure. Servlet can be used to served the dynamic data needed by client using REST convention. Alternatively, Javascript RPC can be use for transfer of data between server and client. There should be no changes required on the current ADempiere core.

Dynamic Data Format

JSON instead of XML is recommended as it produces more compact representation , it is blazingly fast to parse on a client — essentially simple JavaScript eval() would do, and it is very simple to parse on a server too.