Skip to main content

Jquery javascript library for TurboGears

Project description

quickfix: fix the depenency to Turbogears >= 1.0.1 instead of dev version.

Feature

jquery is a jquery javascript library wrapper to minimize the duty of TurboGears web designer.

It contains 2 extra ajax widgets based on jquery.

  • link_to_remote(target ,update, href)

  • periodically_call_remote(update, href, interval)

Which are inspired from Ruby on Rails.

And it contains 2 extra widgets based on jqwebext.

  • zebra table

  • tabs

which are based on jqwebext, a jQuery simple MVC and plugins Components framework respected by Racklin http://jqwebext.googlecode.com/

Available widgets

  • Jquery

    basic jquery libray wrapper for Turbogears

  • link_to_remote()

  • periodically_call_remote

  • jqzebratable

    alternative line color

  • jqtabs

    head tabber

Install

Use setuptools to install:

$easy_install jquery

Usage

jquery

include in config/app.cfg:

tg.include_widgets = ['jquery.jquery']

jquery ajax

import in controllers.py:

from jquery import link_to_remote
from jquery import periodically_call_remote

....
return dict(link_to_remote = link_to_remote(), periodically_call_remote = periodically_call_remote())

in template:

<div id="timelink"><a href = "#">get time</a></div>
<div id="timediv"></div>
${link_to_remote(target="timelink" ,update="timediv", href="/time")}

or

<div id="timediv"></div>
${periodically_call_remote(update="timediv", href="/time", interval="3000")}

The link_to_remote/periodically_call_remote could be placed anywhere in your template. Check http://docs.turbogears.org/1.0/RemoteLink for detail.

jqzebratable/jqtabs

Take jqzebratable for example

  1. include proper extension in config/app.cfg:

    tg.include_widgets = ['jquery.jqtabs']
    
    The proper javascripts will be included in all your templates
  2. open the template to edit. check

    http://code.google.com/p/jqwebext/wiki/ZebraTableExtension for detail

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jquery-1.1.2.zip (8.6 kB view details)

Uploaded Source

Built Distributions

jquery-1.1.2-py2.5.egg (27.1 kB view details)

Uploaded Source

jquery-1.1.2-py2.4.egg (27.1 kB view details)

Uploaded Source

File details

Details for the file jquery-1.1.2.zip.

File metadata

  • Download URL: jquery-1.1.2.zip
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jquery-1.1.2.zip
Algorithm Hash digest
SHA256 87aab9837d527daddbe9928bf3f058d2bf614cdde62202621fbb066f0e6a4a22
MD5 8c62abfaf575e4d3eaba64c71a041062
BLAKE2b-256 687ffca294cb82170b8a53e9fdafa2fea4610089233ca54fcb8ee7aa0f45b877

See more details on using hashes here.

File details

Details for the file jquery-1.1.2-py2.5.egg.

File metadata

  • Download URL: jquery-1.1.2-py2.5.egg
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jquery-1.1.2-py2.5.egg
Algorithm Hash digest
SHA256 3234f250aad11a960ab44d960c46b85b7fb91801bfa271086f3409c5c386daf4
MD5 24b3d5fa912366e1e01d2fbacbbb20de
BLAKE2b-256 4e37d40289b12527d92ce5709d4c56f8dc3579b79f7ebd9a91680ec2062f2e1f

See more details on using hashes here.

File details

Details for the file jquery-1.1.2-py2.4.egg.

File metadata

  • Download URL: jquery-1.1.2-py2.4.egg
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jquery-1.1.2-py2.4.egg
Algorithm Hash digest
SHA256 6b4e6195a9c620b5eba587122252f79deed51d0530b122ded8ddb3f23e427e19
MD5 b641ba9f643db1f10fabb7aa9c8a7fc0
BLAKE2b-256 3cf38a1027eab8f3d5f4155680edf3cffddcbc1b831b1b61e9cbe1efd4976bd3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page