Re: webhelpers.paginate+mako ajax

2008-11-06 Thread Christoph Haas
Hi, Mike and Ben... On Mittwoch, 5. November 2008, Mike Orr wrote: On Wed, Nov 5, 2008 at 11:14 AM, ben adam [EMAIL PROTECTED] wrote: I have a mako template that looks like: ## start template- %inherit file=/base.tmpl / div id=my_results p${ c.paginator.pager('$link_first

Re: webhelpers.paginate+mako ajax

2008-11-06 Thread ben adam
Thanks, this makes it clear now. On Nov 6, 4:25 am, Christoph Haas [EMAIL PROTECTED] wrote: Hi, Mike and Ben... On Mittwoch, 5. November 2008, Mike Orr wrote: On Wed, Nov 5, 2008 at 11:14 AM, ben adam [EMAIL PROTECTED] wrote: I have a mako template that looks like: ## start

webhelpers.paginate+mako ajax

2008-11-05 Thread ben adam
I have a mako template that looks like: ## start template- %inherit file=/base.tmpl / div id=my_results p${ c.paginator.pager('$link_first $link_previous $first_item to $last_item of $item_count $link_next $link_last', onclick=YAHOO.util.Connect.asyncRequest('GET','%s',

Re: webhelpers.paginate+mako ajax

2008-11-05 Thread ben adam
I can get it to work by refreshing the div in base.tmpl that contains the header/footer (although i don't know if that's the proper way since the div contains a complete html document rather than just the body). On Nov 5, 11:14 am, ben adam [EMAIL PROTECTED] wrote: I have a mako template that

Re: webhelpers.paginate+mako ajax

2008-11-05 Thread Mike Orr
On Wed, Nov 5, 2008 at 11:14 AM, ben adam [EMAIL PROTECTED] wrote: I have a mako template that looks like: ## start template- %inherit file=/base.tmpl / div id=my_results p${ c.paginator.pager('$link_first $link_previous $first_item to $last_item of $item_count $link_next

Re: webhelpers.paginate+mako ajax

2008-11-05 Thread Gael Pasgrimaud
Hi ben, request.is_xhr is true if the request is an ajax request AFAIK So you can do something like this in your base template: %if not request.is_xhr: header stuff %endif ${self.body()} %if not request.is_xhr: footer stuff %endif Hope this help -- Gael 2008/11/5 ben adam [EMAIL PROTECTED]: