This is a demo page illustrating Ajax in ZenMagick. The examples use JSON data format. If you want to use anything else, like XML, just write your own methods and you are good to go.
The controller is using PEAR Json for the JSON encoding. Depending on your server configuration you might be better of using something different (possibly something already installed).
The actual Ajax bits are implemented using jQuery and json.
Some things to keep in mind:
- This is demo code and kept very simple
- The zones will be loaded when selecting a country (Austria and Canada are at the top of countries that have zones configured...)
- The JSON generating code in the Ajax controller is probably not the best (yet)
- The HTML formatting of the results is intentionally *very* simple
- There is a lot more that could be implemented as Ajax controller; reviews, etc...







$0.00
