On Tue, Mar 8, 2011 at 7:40 AM, bguery <[email protected]> wrote: > Hi, > > I wrote a plugin to set a defaut format on XHR to avoid you to set the > format parameter on each request. > > You can check it out on github > > https://github.com/borisguery/bgylibrary/blob/master/library/Bgy/Controller/Plugin/AjaxContextDefaultFormat.php > > Here is an usage example : > > http://borisguery.github.com/bgylibrary/#bgylib-components-bgy-controller-plugin-ajaxcontextdefaultformat > > Hope that helps > >
Just a thought: maybe I am wrong but you might also be able to do something comparable on the client side with whatever javascript library you're using, e.g., in jQuery there is $.ajaxSetup(). Either way, IMHO adding the 'format' parameter isn't so ugly or burdensome. -- David Mintz http://davidmintz.org/ It ain't over: http://www.healthcare-now.org/
