« Return to Thread: How to avoid too many callbacks

Re: How to avoid too many callbacks

by Lukas Renggli :: Rate this Message:

Reply to Author | View in Thread

> What is the best way to avoid too many callbacks!

JavaScript.

> I have a large table with e.g. 1000 cells.
> Each cell has an onClick Event with a callback.
> But to improve the performance, it would be
> better to use only one callback which sends back the selected cell id as
> parameter!

You register single callback that passes an id of the selected cell to
the callback. Possibly the JsonParser I just submitted to the Seaside
repository might help you here to establish a simple protocol between
the client and the server side.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 « Return to Thread: How to avoid too many callbacks