Prototype core developer Mislav Marohnić recently patched the open-source CMS Radiant to take advantage of the many code-saving features in Prototype 1.6.0, and he’s written an informative description of the process on his new blog, No Strings Attached. Mislav’s writeup covers the migration from Prototype 1.5.0 to 1.6.0, with examples of how to use the improved DOM and event APIs and upgrade to the new Hash API. The final release of 1.6.0 is just around the corner, so be sure to check out these nuggets of wisdom as you upgrade.

Comments

  1. eiden #

    Great examples!

    I would really like to see more “real world” examples/snippets in the documentation.

    The docs should tell the user both how a method/function works, and why you should use it.

    October 26th, 2007 @ 07:00 AM
  2. LittleChicken #

    I’m a newbie in js. I have used this framework and felt very interested with it. And I wonder how can you do this syntax : $(‘id’).hide () ? In general is : func1([param]).func2([param]).func3([param])... Plz put a simple example here about how to do it. I had view src and understand nothing :P

    Sorry to put question here, but I cant find anywhere to ask

    Regard

    October 30th, 2007 @ 11:07 AM
  3. Maya #

    I think Mislav has made a damned good job and also killed some bugs not only improving speed. it looks for me like a new “milestones”, thanks for the update-info sam.

    with best regards, Maya @ dmp|cda

    November 7th, 2007 @ 11:47 AM
  4. Dawid Krysiak #

    On mislav’ site there is example: // before: Element.removeClassName(row, ‘children-visible’); Element.addClassName(row, ‘children-hidden’); // after: row.removeClassName(‘children-visible’); row.addClassName(‘children-hidden’);

    This could be even shorter: row.removeClassName(‘children-visible’ ).addClassName(‘children-hidden’);

    November 9th, 2007 @ 06:29 PM
  5. tesaatevvvv #
    dddddcode here
    November 15th, 2007 @ 10:51 PM
  6. CRM, Lead Manager, Content Management #

    For this new code:

    initialize: function(element_id) { $(element_id).select(‘tr’).each(this.setupRow, this) }

    Will there be a script error if the tr element does not exist? Or what if “element_id” does not exist? Should I be checking it first?

    Thanks, www.site-assist.com

    November 20th, 2007 @ 04:12 PM

Sorry, comments are closed for this article.

Search Blog


Search the prototype blog.

Subscribe to the blog

Akismet badge