Hi,

I'm glad to release my 2nd. jquery wrapper widdget (1.1.2w2)

http://www.python.org/pypi/jquery


It provided a jquery wrapper and shiped with 3 easy ajax calls:

    * addCallback(target, update, href)
    * addPeriodBack(update, href, interval)
    * addFormback(target, update, href)

addCallback (rails equivalent: link_to_remote), addPeriodBack (rails:
periodically_call_remote), and addFormback (rails: form_remote_tag)
provide you three common ajax callback functions.


How to use them?

check the simple code here:

    [div id="timelink"][a href = "/time"]get time[/a][/div] <--
Original link
    [div id="timediv"][/div] <-- field to update
    ${addCallback(target="timelink" ,update="timediv", href="/time")}
<--our ajax callback

So the ajax request is totally an 'add-on' which let your app still
functionable while browser's JS is disabled.

The concept is here:

http://docs.turbogears.org/1.0/RemoteLink

--
Fred Lin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to