FAQ

On Mon, Mar 30, 2009 at 10:46:57AM -0700, J. Shirley wrote:
On Mon, Mar 30, 2009 at 10:31 AM, Emmanuel Quevillon 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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 12 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedMar 30, '09 at 3:24p
activeApr 13, '09 at 6:08a
posts12
users5
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase