Activate your free membership today | Log-in

Wednesday, December 28th, 2005

Script.aculo.us 1.5.1 includes new effects

Category: Prototype, Toolkit

<>p>Do you always wait for the first point release after a final one? Well, Script.aculo.us has just released version 1.5.1 on the heals of the 1.5 release that came with Rails 1.0.

This isn’t just a bug fix release though, but adds features:

  • Effect.toggle allows silly easy implementation of toggling elements with Slide, Blind and Appear/Fade effects: Effect.toggle('element_id','slide')
  • Effect defaults can now be set globally by manipulating the Effect.DefaultOptions hash
  • Scoped effect queues for multiple parallel running effect queues: Effect.Appear('element_id', {queue:{scope:'myscope', position:'end'}})
  • Dynamic loading of components allows you to tune your site per-page for including only the script.aculo.us components you need: <script src="scriptaculous.js?load=effects,dragdrop" type="text/javascript"></script>
  • New Effect.Move that replaces the old Effect.MoveBy that also allows for absolute movement: new Effect.Move('element_id', {x:30, y:10, mode: 'absolute'})

And if you are on the bleeding edge of Rails you can use the latest and greatest with:

visual_effect :toggle_slide, ‘element’
visual_effect :toggle_blind, ‘element’
visual_effect :toggle_appear, ‘element’

Related Content:

  • Ajax everywhere: Which framework to choose?
    Writing and debugging Ajax, a JavaScript- and XML-driven development technique, can be difficult. In this tip, an expert introduces several frameworks...
  • Ajax everywhere: Which framework to choose?
    Writing and debugging Ajax, a JavaScript- and XML-driven development technique, can be difficult. In this tip, an expert introduces several frameworks...
  • Choosing an Ajax framework
    Your customers won't have to fear Ajax if they have the right tools to work with. Help them determine which Ajax-specific framework, library or...
  • Ajax Cheat Sheets
    We've gathered cheat sheets for fast reference to Ajax-related information. You'll find information about Prototype, code packages, scriptaculous and...
  • Google Web Toolkit Solutions: Cool & Useful Stuff
    The Google Web Tookit (GWT) is a cutting-edge UI framework for Java developers, which lets you create rich, interactive user interfaces using familiar...

Posted by Dion Almaer at 9:40 am
3 Comments

++++-
4 rating from 43 votes

3 Comments »

Comments feed

Very nice! I especially love the effect.toggle feature. Works like a charm!

Comment by Marco — December 28, 2005

Yeah, it worked great when I implemented it in Dojo months ago too :-)

Comment by Jason Carreira — December 29, 2005

no

Comment by no — May 10, 2007

Leave a comment

You must be logged in to post a comment.