Rich Web Apps with Thin Client
Before I get into details on "how" Agile Toolkit implements Rich Thin Web Apps, I would like to discuss "why?".
Agile Toolkit relies on a similar concept, except that HTML rendering and server-side communication part is carried out by the same component - a View. Such Views in most cases are generic classes of Agile Toolkit and to make them work dynamically requires almost no effort on the part of Developer. Additionally Agile Toolkit allows multiple components to co-exist and each of them to work with their own API independently.
Since we are in the middle of the HTML page, why not play a game?
Curiously the above game is implemented completely in PHP-only code in under 50 lines. What happens there really is actually quite simple. Eeach letter is assigned a "onclick" action which reloads the actual game and passes argument containing the letter you have clicked. How about a simpler example?
What's curious is that the same code would work if you simply open the URL: /learn/understand/jsapi/structure?hello=1#hello.
atk4_reload() relies on ui.atk4_loader.js widget which enhances the way how AJAX loading work, but esentially is quite similar to jQuery.load().
How this approach is used with Grid?
Agile Toolkit Grid