Category: Ajax
-
Set up JSON action output in CakePHP 1.3
Working on setting up the Rest Plugin for CakePHP helped me realize that i wanted to set up JSON output for some of my actions. This way, if you request for example “www.yourapp.com/app/post/view/1.json” in the url, you will be returned the JSON post data. This excellent tutorial here will help you achieve it. The steps…
-
How to POST cross domain and access the returned data using ExtJS
Please refer to my earlier post for background on this project. Here is how to post data to a server on a different domain and receive data back using ExtJS (with inspiration from the GWT implementation). First the FormPanel. The fields are standard and in the JS file we define two variables that are critical…
-
Of ExtJS’s ScriptTagProxy, Spring Actions, TreePanels and JsonStores
I recently had to implement an Organization lookup (backed by a LDAP repository) widget that will be used by some of the web applications I developed and this in a cross-domain environment. The data displayed within the widget is broken down in Organization->Group->Person hierarchy and on selection of a Person and click of a button,…