[ANN] jquery widget was released

8 views
Skip to first unread message

gasolin

unread,
Mar 25, 2007, 10:22:37 PM3/25/07
to TurboGears
Hello:

I'm glad to announce the jquery widget, these widgets are currently
used in my in-Site project.
http://www.python.org/pypi/jquery/

jquery widget not only contain the jquery library wrapper, but also
contain some helpful widgets based on jquery:

* link_to_remote/periodically_call_remote functions (yeah, easy AJAX!)
The design concepts and the prototype of 'link_to_remote' function is
here
http://docs.turbogears.org/1.0/RemoteLink

* zebra table (alternative row background color table) and tabs which
follows MVC patterns.

Those widgets will import jquery and other proper libraries
automatically.


To call them are almost the same as calling build-in
'turbogears.mochikit', but they have different namespace.

The basic usage is::

from jquery import jquery

or import the jquery in whole site by specifying the config/app.cfg::

tg.include_widgets = ['jquery.jquery']

The link_to_remote/periodically_call_remote functions are more elegant
from RoR,
you could place them in any place in html that you want.

For link_to_remote function you should specify the 'target' class that
indicate which class trigger the function.

At the first release these widgets are suffered from lacking docs.
Please feel free to ask for help or download the source and make some
contribution :-)

--
Fred

Reply all
Reply to author
Forward
0 new messages