Jquery javascript library for TurboGears
Project description
Feature
jquery is a jquery javascript library wrapper and ajax helper for happy TurboGears web designers.
Available widgets
Jquery (basic jquery libray wrapper for Turbogears)
It also contains 3 extra ajax widgets based on jquery.
addCallback / link_to_remote(target ,update, href, callback)
addPeriodBack / periodically_call_remote(update, href, interval)
addFormback / form_remote_tag(target, update, href)
Which are inspired from Ruby on Rails/pquery and give them the twisted syntax.
Install
Use setuptools to install:
$easy_install jquery
Usage
jquery
include in config/app.cfg:
tg.include_widgets = ['jquery.jquery']
jquery ajax usage:
import in controllers.py:
from jquery import addCallback from jquery import addPeriodback from jquery import addFormback .... return dict(addCallback = addCallback, addPeriodback = addPeriodback, addFormback = addFormback)
in template:
[div id="timelink"][a href = "#"]get time[/a][/div] [div id="timediv"][/div] ${addCallback(target="timelink" ,update="timediv", href="/time")}
or:
[div id="timediv"][/div] ${addPeriodback(update="timediv", href="/time", interval="3000")}
or:
[form class="timelink" action="ajax" method="get" ] Field : [input type="text" name="field" /][br /] [input type="submit" /] [/form] [div id="timediv"][/div] ${addFormback(target="timelink", update="timediv", href="ajax")}
Reference
jquery http://jquery.com
Source
Source is available in
History
1.2.3:
update to jquery 1.2.3
host in TurboGears svn
1.2.2:
update to jquery 1.2.2
1.1.2w2:
new twisted style ajax call
new addFormback/form_remote_tag call
passing ajax function no need extra ‘()’ at all.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jquery-1.2.3.zip
.
File metadata
- Download URL: jquery-1.2.3.zip
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9a33626652fab9ac76a9e4a9a271d0c47cb2ff292692463a70f7585166f03d4 |
|
MD5 | 46d2802b2b202098cf9272ac2eb29426 |
|
BLAKE2b-256 | 05459a6d7ff770b1279c901c8dfca1f9a9d6c9822d75a2bad834d0e2ddd4f8cd |
File details
Details for the file jquery-1.2.3-py2.5.egg
.
File metadata
- Download URL: jquery-1.2.3-py2.5.egg
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bbb45b3dee08357ba7122f03e155a4fe29f1777784fff500dcca02f9380c2a6 |
|
MD5 | d4008362863f96de21435001ba5dd72e |
|
BLAKE2b-256 | 0123ab5a3fd5277db608eee2126273ce5e45ba0deb2d47498fa86466fb6be37c |