Jennifer, Are you sure you want to stick with this route? Looks like your going to make a lot of work for yourself. I would hate to see the js code to make xml. Use the js code to just post the values you want read those values in with something like $c->request->params->{whatever} in your controller. Then in your controller just spit out json which is not even really a line of code. If your using the JSON view all you need to do is put your data in the $c->stash->{json} and it will auto serialize it for you.
Why would you want to use JSON? Because javascript can just read it straight in and you can use it without having to parse anything. Your js would just eval the returned json content and use it. If you return xml you will need to parse it out and just makes a lot of work. If you want I can maybe create something on the wiki on how to use mochikit for the js part of it and catalyst for the controller part of it. Maybe its a good advent calendar article anyone think it would be good? Thanks, ------------------------------------------ Ali Mesdaq (CISSP, GIAC-GREM) Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com ------------------------------------------ -----Original Message----- From: Jennifer Ahn [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 9:37 AM 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 an xml file to a uri controller method but, how does the controller process that xml? is the standard way of doing this by reading in the xml file through stdin? i'd like to implement this without using JSON of jemplate. thanks for your help! jennifer _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ Protected by Websense Messaging Security -- www.websense.com _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/