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 stepsContinue reading “Set up JSON action output in CakePHP 1.3”

ExtJS: Show a loading mask during Ajax calls

This is my first ExtJS post in a long while and sorry it’s not related to ExtJS4; maybe in the near future.Recently I was asked to implement a page wide mask during Ajax calls to prevent user from interfering with the current call by clicking on the screen or doing something they otherwise should notContinue reading “ExtJS: Show a loading mask during Ajax calls”

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 criticalContinue reading “How to POST cross domain and access the returned data using ExtJS”

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,Continue reading “Of ExtJS’s ScriptTagProxy, Spring Actions, TreePanels and JsonStores”