[Catalyst] DELETE through REST and Jemplate

Hans Dieter Pearcey hdp.perl.catalyst.users at weftsoar.net
Mon Mar 30 19:03:11 BST 2009


On Mon, Mar 30, 2009 at 10:46:57AM -0700, J. Shirley wrote:
> On Mon, Mar 30, 2009 at 10:31 AM, Emmanuel Quevillon <tuco at pasteur.fr> wrote:
>     function remove_item(id){
>         Jemplate.process('test.tt2',
>                         '[% Catalyst.uri_for("/rest/item/") %]'+id,
>                         '#_item');
>        }
> 
>     Thanks for this help
> 
>     Emmanuel
> 
> 
> Oh, I missed it because it just is a Jemplate.process line... didn't even see
> the remove_item. 
> 
> That's a GET request, since it just fetches something remotely from the server
> and does nothing else. 

As an aside, conceptually, using your template's "process" method to delete an
item seems really crazy.

hdp.



More information about the Catalyst mailing list