• Shortcuts : 'n' next unread feed - 'p' previous unread feed • Styles : 1 2

» Publishers, Monetize your RSS feeds with FeedShow:  More infos  (Show/Hide Ads)

Date: Thursday, 02 Nov 2006 09:26

Prototype needs your documentation skills—a new super-cool documentation site is in the making, and it needs your help.

Get on board already!

Author: "--"
Send by mail Print  Save  Delicious 
Date: Saturday, 16 Sep 2006 22:46

As promised, here are the slides on unit testing JavaScript from my talk at RailsConf Europe:

Adventures in JavaScript testing (PDF, 11.7 MB)

I also hear that audio (and video?) might be forthcoming, but I can’t promise anything on that. Anyway, as soon as I get some rest, I’ll also post some photos from the conference. :)

Author: "--"
Send by mail Print  Save  Delicious 
Date: Tuesday, 12 Sep 2006 18:46

Tomorrow we’ll make a short trip over to London for RailsConf Europe where I’ll be talking about Adventures in JavaScript Testing.

Here’s a teaser:

I assure you, there is. Drop by my talk if you want to know more. I’ll also post the talk here on mir.aculo.us after the conference, of course.

Hope to see some of my humble readers at the conference!

Author: "--"
Send by mail Print  Save  Delicious 
Date: Wednesday, 06 Sep 2006 07:02

script.aculo.us 1.6.4, which marks the inclusion of the new release candidate of Prototype 1.5, is out now.

(For those of you missing the 1.6.3 version: that version was out yesterday but had a issue with IE that is now fixed in 1.6.4)

This release comes with the brand-new Prototype V1.5.0_rc1 version, adds several new features and options to drag and drop, features a whole new (experimental) way of doing testing, and adds some other goodies here and there. Also, thanks to the contributors for identifying and squishing bugs!

So—what’s new & cool?

  • Merge assertElementsMatch and assertElementMatches from Prototype’s [4986] unittest.js [Sam Stephenson]
  • Add assertRespondsTo and shouldRespondTo assertions

      // object
      var testObj = {
        isNice: function() { }

      // test
      assertRespondsTo('isNice', testObj);
  • Make Sortable.serialize handle DOM IDs like “some_element_1” correctly, fixes #5324
  • Add support for onStart, onDrag and onEnd events directly on Draggables (invoked from the Draggables.notify), fixes #4747 [thx scriptkitchen]

      new Draggable('some_id',{
        onStart:function(){ /* ... */ },
        onDrag:function(){ /* ... */ },
        onEnd:function(){ /* ... */ }
  • Add autoSelect option to Autocompleters to auto select an entry if only one is returned, fixes #5183 [thx cassiano dandrea]
  • Added delay option to Draggables and Sortables, see test/functional/dragdrop_delay_test.html for usage, implements #3325 [thx lsimon, tomg]
  • Add version and timestamp to indvidual library files for easier identification (the files are preprocessed by the Rake fresh_scriptaculous task), fixes #3015 [thx Tobie]
  • Add assertIndentical and assertNotIdentical unit test assertions, which test for equality and common type, fixes #5822 [thx glazedginger]
  • Add integration test for Ajax autocompleter for results with no linebreaks, #4149
  • Added a custom exception to all base effects when used on non- existing DOM elements, added a assertRaise method to unit tests
  • Add element shortcuts to Builder that can be activated by calling Builder.dump() (see the unit test), fixes #4260 [thx napalm]

      var element = DIV({id:'ghosttrain'},[
         DIV({style:'font-size: 11px; font-weight: bold;'},[
           H1('Ghost Train'),
           "testtext", 2, 3, 4,
             LI({onclick:'alert(\'test\')'},'click me')

  • Make Effect.Puff work correctly for floating elements, fixes #3777 [thx michael hartl]
  • Fix selection of correct option in SELECT element generated by InPlaceCollectionEditor for indexed option arrays, fixes #4789 [thx steve]
  • Fix an issue with redrawing ghosted draggables that are inside a scrolled container, fixes #3860 [thx gkupps, tsukue]
  • Fix autoscrolling inside scrollable containers when window is scrolled too, fixes #5200 [thx wseitz]
  • Fix autoscrolling when dragging an element unto a scrollable container, fixes #5017 [thx tomg]
  • Fix a condition where overriding the endeffect on Draggables without overriding the starteffect too leads to a Javascript error [thx Javier Martinez]
  • Fix a possible error with the drag/drop logic (affects the solution to #4706)
  • Fix various issues with IE detection and Opera, and setOpacity, fixes #3886, #5973
  • Remove revert cache code obsoleted by #4706, fixes #3436 (again) [thx tomg]

As always, the required 1.5.0_rc1 version of Prototype is included with the download.

Big thanks to the contributors!

Author: "--"
Send by mail Print  Save  Delicious 
Date: Tuesday, 29 Aug 2006 17:15

Borrowing from Behaviour Driven Development techniques, especially the RSpec framework I’ve added some new features to script.aculo.us’ testing library.

It’s all about more readability, and even non-technical folk should be able to comprehend (at least some) of the tests. Let’s have a look:

Test.context("BDD-style testing",{
  'should automatically add extensions to strings': function(){

Basically, you’re defining a context for which one or more specifications should be asserted. Note the easy readability, and the added value by using a string to describe the test/specification, giving you the advantage of having better documentation for your JavaScript libraries.

Of course, setup and teardown is also supported, as are all normal assert* methods.

If you code in the Prototoypian way, with proper objects, an other added value, especially for higher-level behavioural specifications is:

var testObj = {
  isNice: function(){
    return true;
  isBroken: function(){
    return false;

// in Test.context
'should add object extensions': function(){
  Object.extend(testObj, Test.BDDMethods); 

Note that the support for this is far from complete, and JavaScript has certain limitatons that won’t allow all the elegant solutions that are possible with Ruby, but your tests can get much cleaner this way.

For now, you’ll need the script.aculo.us version from the SVN trunk. For more examples, see the repository file browser: test file, test library.

Author: "--"
Send by mail Print  Save  Delicious 
Date: Tuesday, 29 Aug 2006 17:15

Justin Palmer on the recent updates to the Prototype trunk.

Author: "--"
Send by mail Print  Save  Delicious 
Date: Friday, 25 Aug 2006 12:41

Decorator pattern in JavaScript? Sure can do. Read the article on how to augment arbitrary JavaScript objects with custom before and after events.

Basically, it boils down to this:

  'enterEditMode', function() { 
    // do something 

Nicely done, and very useful to add your own tweaks to existing JavaScript controls and components.

Author: "--"
Send by mail Print  Save  Delicious 
Date: Tuesday, 22 Aug 2006 16:02

I’m very proud that I’m part of the wollzelle team. Read more on the wollzelle blog, typestorming.

Author: "--"
Send by mail Print  Save  Delicious 
Date: Monday, 21 Aug 2006 13:17

script.aculo.us logo

The script.aculo.us site just got relaunched—it’s now easier to get a grasp of what it does, plus you’ll get the stuff that you need faster.

And, it’s much spiffier now.

Note the wiki is not affected by this, so everything there should be in the same place for you to find. At this occasion I want to thank the myriads of authors that keep adding documentation, tricks and real-world experience for all those new (or-not-so-new) to the wonderful world of script.aculo.us. Thanks a bunch!

Also, there’s been a bunch of updates since 1.6.2, so we’re steadily proceeding towards a 1.7 release in the not-so-distant future.

It’s about the user interface, baby!

Author: "--"
Send by mail Print  Save  Delicious 
Date: Thursday, 17 Aug 2006 17:35

The rails-spinoffs mailing list (and the other rails lists too) have been moved to Google Groups because over permenant server overload. So, give a warm welcome to the new group at: http://groups.google.com/group/rubyonrails-spinoffs

All old subscriptions have been moved along, so nothing much should change for those of you already subscribed. For those of you that want to subscribe, you can do it either at web page (if you have a google account), or by sending a subscription mail.

Next to making sure that the Trac has room to breathe, you can enjoy some nice new features, like the web interface, RSS feeds and of course powerful searching.

Read more on this on Riding Rails, the official Rails blog.

Author: "--"
Send by mail Print  Save  Delicious 
Date: Saturday, 12 Aug 2006 19:17

After four long months of waiting (due to my being busy with sekrit work), script.aculo.us 1.6.2 is now out!

It’s a mostly-bug-fix-only release, so don’t expect any major oohs! and aahs! here, but sure get it. It’s recommended for all users, and addresses various more-or-less cosmetically issues, besides a memory leak bug with Draggables and an endless loop in the Slider code.

Anyway, big, big thanks to all contributors who continue to do patches and bug reports! Hopefully the trac will be up to speed soon (new server is coming!). If you should have any issues, please report it to the rails-spinoffs mailing list.

Updates and fixes:

  • Fix a problem in the drag and drop logic if an reverting/drag ending draggable was initialized for a new drag (for example by clicking repeatedly) for all cases where the default start/revert/end-effects are used, fixes #4706 [thx tecM0]
  • Fix possible memory leaks with Draggables, fixes #3436 [thx aal]
  • Throw nicer errors when requires script.aculo.us libraries are not loaded, fixes #5339
  • Make slider handles work when not displayed initially by using CSS width/height, fixes #4011 [thx foysavas]
  • Update sortable functional test with onUpdate counter
  • Make more Element extensions unit tests work on Safari
  • Add the assertMatch unit test assertion for asserts with RegExps [thx Ian Tyndall]
  • Fix a problem with Effect.Move causing “jumping” elements because of very low float numbers in some situations
  • Fix a missing semicolon in dragdrop.js, fixes #5569 [thx mackalicious]
  • Fix a slight inaccuracy with Effect.Scale that could lead the scaling to be one pixel off
  • Be more prototypish with Effect.Transitions.linear
  • Make Effect.Scale recognize font sizes that use the pt unit, fixes #4136 [thx aljoscha]
  • Fix IE hack in Effect.Opacity, fixes #5444 [thx nicholas]
  • Fix IFRAME layout fix for IE and Autocompleter, fixes #5192 [thx tommy skaue]
  • Fix only option in onEmptyHover, fiex #5348 [thx glenn nilsson]
  • Fix Effect.BlindDown and SwitchOff handling of supplied callbacks, fixes #5089 [thx martinstrom]
  • Fix a problem with field focus on Ajax.InPlaceEditor and loading external text, fixes #4988, #5244 [thx rob]
  • Do not attempt to scroll if scrollspeed is 0/0, fixes #5035 [thx tomg]
  • Fix a problem with Sortable Tree serialization, fixes #4939, #4688, #4767 [thx Sammi Williams]
  • Fix an endless loop with sliders, fixes #3226, #4051, #4765 [thx jeff]
  • Make autocompleter work with update DIVs that have scrollbars, fixes #4782 [thx Tommy Skaue]
  • Corrected options parsing on switchoff effect, fixes #4710 [thx haldini]

There are also some updated functional and unit tests (use these links to get to live online versions of these).

Also, this version of script.aculo.us is now included with Edge Rails (as of changeset 4765), and should be part of the upcoming (as in “when it’s ready”) Rails 1.2 release.

Next up: Planning the script.aculo.us 2 release… ;)

Author: "--" Tags: "Ruby on Rails, JavaScript, Web 2.0, scri..."
Send by mail Print  Save  Delicious 
Date: Friday, 04 Aug 2006 10:31

The next release of Apple’s operating system Mac OS X 10.5 will ship with Ruby on Rails installed (read more on this at Riding Rails).

Cool stuff indeed.

Author: "--" Tags: "Ruby on Rails"
Send by mail Print  Save  Delicious 
Date: Wednesday, 02 Aug 2006 14:21

We at wollzelle launched our new blog today: typestorming—so, if you want to have a look at our projects and other stuff we do, be sure to check it out.

It also lists some stuff we’ve not announced elsewhere, like the Chang restaurants Ajax site, among other things.

Like the fluxiom blog, it’s based on Mephisto, a great Rails blog app.

So, see you over at typestorming

Author: "--"
Send by mail Print  Save  Delicious 
Date: Thursday, 27 Jul 2006 17:07

Check out Amy Hoy’s JavaScript Boot Camp tutorial, highly recommended!

Author: "--"
Send by mail Print  Save  Delicious 
Date: Friday, 14 Jul 2006 10:17

TextMate screenshot Harald Martin Ström has created a bundle for easier Prototype and script.aculo.us development with everyone’s favourite editor, TextMate.

While not completely finished yet, it features a bunch of helpers to make writing Prototypish code even easier, with support for Ajax calls, enumerations or forms in Prototype, and Effects in script.aculo.us. It also features nice syntax highlighting of course, based on Justin Palmers earlier efforts.

It even features a cool “look-it-up-in-the-wiki” function: just mark a word and press Ctrl-Shift-H.

More about it & download here.

Author: "--" Tags: "JavaScript, script.aculo.us"
Send by mail Print  Save  Delicious 
Date: Monday, 10 Jul 2006 06:50

Here are two must-read articles on extending Prototype—here we go:

Nice to see this great stuff popping up everywhere—please don’t stop. :)

Plus, if you’re able to understand german, click here.

Author: "--"
Send by mail Print  Save  Delicious 
Date: Wednesday, 28 Jun 2006 10:50

The WebKit nightly builds now sport Drosera, which allows for debugging JavaScript code in web sites and applications.

And it even has a cool name. Eat those bugs!

Author: "--"
Send by mail Print  Save  Delicious 
Date: Thursday, 22 Jun 2006 13:30
Today marks the first birthday of script.aculo.us, which was launched on June 22, 2005.

Since it’s humble beginnings as an effects add-on to Prototype and coming directly out of what we at wollzelle needed for fluxiom, it’s seen many uses on high- and not-so-high-level web sites, plus it’s covered in many articles all over the web and the blogosphere and all kinds of books.

Conservative estimates are that script.aculo.us has had more than a million downloads (counting the packages from the script.aculo.us download site, and the inclusions within frameworks, first and foremost Ruby on Rails).

script.aculo.us was an enormous success (it ranks #4 in the del.icio.us all-time popular sites!) and personally I’m very proud of it (and all the people that contributed to it!).

A big thanks at all the contributors—let’s see if we can make the second year as exciting as the first.

The Web is still changing.

Author: "--" Tags: "JavaScript, Web 2.0, script.aculo.us"
Send by mail Print  Save  Delicious 
Date: Friday, 16 Jun 2006 12:12

Tune your telnet to telnet ascii-wm.net 2006

Or read about it here (also has mirrors).

Author: "--" Tags: "Fun"
Send by mail Print  Save  Delicious 
Date: Thursday, 15 Jun 2006 12:12

Dean Edwards, with help from Matthias Miller and John Resig has come up with a cross-browser solution for the onload problem (that is, onload only fires after all binary assets of a page are completely loaded, and not after the HTML document is complete).

The problem prevents using libraries like behaviour.js in a complete no-inline-javascript way in many situations, as users have to wait for all things being loaded before the page becomes usable.

Nice to see this issue finally being tackled.

(via The Hero Dies in This One)

Author: "--"
Send by mail Print  Save  Delicious 
Next page
» You can also retrieve older items : Read
» © All content and copyrights belong to their respective authors.«
» © FeedShow - Online RSS Feeds Reader