[aida] A simple AJAX batcher for Aida

nicolas petton petton.nicolas at gmail.com
Sun Oct 28 14:37:23 CET 2007


Le dimanche 28 octobre 2007 à 14:07 +0100, Janko Mivšek a écrit :
> nicolas petton a écrit :
> > a batcher is a component wihich takes a list of elements, and creates 
> > pages with them. For example, if you have 20 elements and if you want 
> > to display 5 elements per page, you'll have 4 pages, and a footer with 
> > links to pages :
> >
> > "<< 1 2 3 4 >>"
> >
> > In Seaside it's called a batched list. Maybe it's a better name ?
> 
> In Aida there is a WebGrid which supports such paging. Is this the same 
> as "batching"?
Yes, I think. Did you see my code? In fact it's close to WebGrid.
Can WebGrid work without table (display a collection of elements for
example, with paging) ?

Nicolas
> 
> Janko
> >
> > 2007/10/28, Janko Mivšek < janko.mivsek at eranova.si 
> > <mailto:janko.mivsek at eranova.si>>:
> >
> >     Nicolas,
> >
> >     Pardon my ignorance, but what is Ajax batcher?
> >
> >     Janko
> >
> >     nicolas petton a écrit :
> >     > I needed a batcher for my blog to display posts, so I decided to
> >     write a
> >     > component. It is based on WebGrid, and uses AJAX to batch.
> >     > It batches a collection a webElements, and the batch size can be
> >     > specified. It still needs some clean up, but it seems to work
> >     fine (on
> >     > Squeak, not tested on VW yet).
> >     >
> >     > Usage example :
> >     > WebBatcher new batchsize: 10; batchedElements: --a collection of
> >     > WebElements--
> >     >
> >     > Any feedback is appreciated.
> >     >
> >     > Nicolas
> >
> >
> 
> _______________________________________________
> Aida mailing list
> Aida at aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida
-- 
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma clé GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi�ce jointe non texte a �t� nettoy�e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071028/852e7690/attachment.sig 


More information about the Aida mailing list