Personal tools
You are here: Home   Blog   Archive   2006   September   07   Scriptaculous Effects  
Document Actions

Scriptaculous Effects

by Godefroid Chapelle last modified 2006-09-07 19:52
Filed Under:

Basic support for Scriptaculous effects has been added to KSS.

As promised a long time ago, KSS has now support for Scriptaculous effects.  The integration was really easy thanks to the overall pluggability of kukit.js (Kudos to Balazs for this.)

Effects can be:
  • bound to events by a KSS resource :
#regionToFade:click {
action-client: effect;
effect-type: fade;
}
  • or executed from a command added to the response on the server :
from Products.PloneAzax import AzaxBaseView
view = AzaxBaseView(context, context.REQUEST)

commands = view.getCommands()
commands.effect('#regionToShow', 'appear')

return view.render()

The support is still very basic : some effects are missing, parameters are not supported... This will be refined during the sprint that will happen next week in Belgium by BubbleNet's offices. If you can't wait, take a look at the online-demo.


This week has been rich in the KSS team :
  • ResourceRegistries 1.2.3 now includes the fixes needed by PloneAzax. (Florian)
  • PloneAzax has now a branch that is compatible with Plone 2.1.3. It works with the Zope 2.8 branch of azax. Bundle will follow. (Balazs)
  • There is now a Vim syntax file for KSS. (Godefroid)
I really enjoy this team work !

I also would like to mention a document describing the development process of ajaxification with KSS and the brand new IRC channel.