[Catalyst] implementing ajax

Jennifer Ahn jenahn at stanford.edu
Mon Mar 10 21:04:18 GMT 2008



Matt Pitts wrote:
>> -----Original Message-----
>> From: Jennifer Ahn [mailto:jenahn at stanford.edu]
>> Sent: Monday, March 10, 2008 12:37 PM
>> To: The elegant MVC web framework
>> Subject: [Catalyst] implementing ajax
>>
>> hello!
>>
>> i'm wondering how one would implement the server side controller end
>>     
> of
>   
>> an application with ajax.  i have the javascript on my client sending
>>     
>
> See Catalyst::Controller::REST.
>
> Even though you're not explicitly doing REST, general AJAX practices
> seems to have grown out of REST principles and using this module as a
> base class for your AJAX controller is a good place to start.
> Specifically, it will (de)serialize your http bodies automatically based
> on certain headers or your controller configuration.
>
> v/r
> -matt pitts
>
>   

Would anybody mind sharing their controller method that processes the a 
POST request from HTTP and parses through the XML file received?

An example would help me out :)
Thank you!

Jennifer



More information about the Catalyst mailing list