script.aculo.us 1.7.0 beta 2
December 18th, 2006 by Thomas Fuchs, 19 comments »This new beta of the upcoming script.aculo.us 1.7 release adds support for using the morph effects with style definitions in CSS classes:
So, first define a CSS class:
.warning {
font-size: 15px;
color: #f00;
border: 4px soild #f00;
}
Then use it with .morph():
|
|
$('mydiv').morph('warning'); |
Thanks to Tobie Langel for this niceness. Additionally, next to the string based style strings, you can also use the style definitions you know from .setStyle() in Prototype:
|
|
$('mydiv').morph({fontSize:'20px',color:'#abcdef'}); |
Effects should now also play faster, provided your browser and computer is fast enough, as the maximum frames per second setting is now at 60fps vs. 25fps in earlier releases.
Also, some issues are addressed in the included new beta of Prototype, mainly Opera 9 issues and a using Safari with HTTP authorization; plus of course lots of other fixes and new cool stuff.
Download script.aculo.us 1.7.0 beta 2 here or grab it from SVN.
Oh yes, and happy holidays to you—have fun (maybe with playing around with this?) and be sure to report issues. Oh yes, and more stuff is coming…
(3).times(function(){ alert(‘Ho!’) });
Tweet This Post
Digg This Post
Share on Facebook









Thank you for this, it’s really great !
Excellent ! But can You pack docs or wiki into offline zip file too.
Can’t wait ! thanks again for all this great work
Sweet, was looking forward to a speed improvement! Tnx!
Awesome, but please pack docs in zip too.
This morphing stuff is just way too cool! I have updated my compressed versions of scriptaculous and prototype and they are available at this absurdly long url: http://www.stevekallestad.com/blog/scriptaculous_17_beta_2_and_prototype_15_rc2_compressed.html
I’ll put up a /downloads page soon
.
You guys are churning out updates faster than I can take the time to appreciate them.
Merry Christmas everyone!
whoa that fixes my speed issues
great stuff.
You can compare the speeds of beta1, beta2 and Interface here :
http://weblog.parkerfox.co.uk/2006/12/21/scriptaculous-vs-interface
sick! $(‘div’).morph looks like it’ll save a lot of time writing effects!
Fabulous work. I arrived at Scriptaculous just before the 1.7.0 beta 1 and am catching up with how it all works.
Lots of useful documentation across the web … but (of course) it becomes out of date the moment you release new versions (or improve the functions behind the scenes). So it’s very important for some of us developers to receive updated documentation with software updates.
Please do consider providing maintened documentation (with examples).
Please !
Nice work Thomas! The speed improvements are great.
I also would like to see a up2date documentation.
Happy Holiday,
Dieter
I’m still having a lot of problems setting height/width and left/top properties on absolutely positioned elements using morph. It’ll move to the spot or resize to the specified dimensions and then revert right back. I can’t reproduce it across the board as it works properly when using it in some cases.
I would love to know if anyone can think of a reason this is occurring.
The cases where it works it is absolutely fantastic, though!
Great script archiv. Thanks for your support, i love the ajax drag functions with the lists.
Nice update! I added an example of the morph() function to my blog if anybody wants a quick preview of what it does.
I’m having problem with autocomplete. If I select something from a autocomplete list and press enter then form will be submitted. with rc1 I didn’t have this problem. This happens in Opera (9.10) and Firefox (1.5.0.9)
Nate, I’ve been playing with it and I had the same problem. Here’s how I fixed it: I had two divs, both with absolute positioning. In the effects.js code, it looks like the class you’re morphing to is being added to the element, but the old class isn’t being removed. So, if you don’t want to mess with the mir.aculo.us code, set your positioning inline instead of in a CSS class definition.
Hope that helps you out!
And Thomas, this library is so wonderful! I used to do these effects by hand, but now script.aculo.us makes everything so easy!
@ Michael, Nate: You should use an afterFinish/beforeFinish callback to remove that old class name of yours.
Any plans to add support for IE6?
Hate to ask for it, but some people still use it.
paulj: IE6 is fully supported by script.aculo.us. Which feature are you missing?
I played around with some functions (morph). awesome, use it in the next relaunch. thxs for sharing it…
@paulj
IE6 / XP SP2 – no problems…