BUILT IN AJAX SYSTEM

by barkkathulla 2012-09-17 10:32:17

<font color=#003366>Built-In Ajax System</font>

The Gantry framework comes with a built-in Ajax system which acts as a bridge between the client and the Gantry framework. Every Ajax call is directed to an "Ajax Model" that receives in the Ajax parameters and after its operations is able to return a response with what the original Ajax Call request is expecting. Below you can see a schematic sum of the process.


The real power of the Gantry framework built-in Ajax system are the models. Every developer can create its own custom Ajax Models and use the Ajax calls client-side to retrieve specific types of data.

There are 2 Ajax systems in the Gantry framework that actually work exactly the same with one exception: restrictions. In fact the first can be used for everything regarding the theme while the second can only be used admin side. The restriction makes it so that even by error you cannot use the admin Ajax System on the frontend.

What differs about the two are the URI to call and a "template" parameter that needs to be passed in the admin Ajax System only.
1005
like
0
dislike
0
mail
flag

You must LOGIN to add comments