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.
Metadata
Release files for jquery 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jquery-1.2.3.zip | 27.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jquery-1.2.3-py2.5.egg | Legacy Egg format | - | - | Details |
Total release size: 51.1 kB
Release files / jquery-1.2.3.zip
| Download URL | jquery-1.2.3.zip |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9a33626652fab9ac76a9e4a9a271d0c47cb2ff292692463a70f7585166f03d4
|
|
BLAKE2b-256 checksum How to use checksums |
05459a6d7ff770b1279c901c8dfca1f9a9d6c9822d75a2bad834d0e2ddd4f8cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / jquery-1.2.3-py2.5.egg
| Download URL | jquery-1.2.3-py2.5.egg |
|---|---|
| Size | 24.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
9bbb45b3dee08357ba7122f03e155a4fe29f1777784fff500dcca02f9380c2a6
|
|
BLAKE2b-256 checksum How to use checksums |
0123ab5a3fd5277db608eee2126273ce5e45ba0deb2d47498fa86466fb6be37c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |