Tag: prototype

  • Prototype Changes

    I found this article via Ajaxian regarding a nice block of Prototype updates. Shorter syntax for event handling Make destructive Element, Form, and Form.Element methods return their first argument, so that multiple calls can be chained together. The following methods now return their first argument: Element.toggle, Element.hide, Element.show, Element.remove, Element.update, Element.replace, Element.addClassName, Element.removeClassName, Element.observe, Element.stopObserving,…

  • Speeding Up Prototype’s $$ Selector

    Prototype, as I’ve stated in the past, is our Javascript library of choice for Ajax at Plymouth State University and in the current re-writing of MasterWish. As of version 1.5 of Prototype there has been a sweet Selector function $$ which is best used when manipulating more than one dom element of the same type…i.e.…

  • Script.aculo.us v1.6 Released

    Great news over at Mir.aculo.us. It appears as if version 1.6 of my favorite DOM manipulation library, Script.aculo.us has been released! Thankfully the new version of Script.aculo.us uses Prototype v1.5. This is sexy because now I can revert to downloading both Prototype and Script.aculo.us right from the Script.aculo.us site. (Hooray for being lazy) Here’s an…

  • MasterWish – Practicing What I Preach

    MasterWish, my labor of love (created with my friends Zach Tirrell and Jon Emmons) is my playground for Ajax and Web 2.0 experiments. If you haven’t been acquainted with the site, its a wishlist site with a schlew of features. The high point is the ability to secure down lists and grant access to specific…

  • Writing Your Server-Side Ajax Handler

    [[innerindex]]In my recent post on ‘Ajax; Templating; and the Separation of Layout and Logic,’ I refer to an Ajax Handler that sits server side to handle Ajax calls. Some elaboration is in order. As I have stated in the past, I’m a huge fan of Prototype AND I choose PHP as my language of choice…so…

  • Oooo event:Selectors for Prototype

    My article on the Separation of Layout and Logic touched on a key point of heavy Javascript use in an Ajax rich environment…the need for separation of Javascript code – namely events – from the HTML. Behaviour was my suggested CSS/Javascript event selector framework. Behaviour is a stand-alone event framework. You can use it regardless…

  • Prototype Makes Javascript Painless

    Prototype is an excellent tool but lacking in documentation, causing me to fumble around and *gasp* look at the source code. As any developer knows, when reviewing code there is a chance that you may miss something or ignore what doesn’t seem interesting. In doing so, you may miss some sweet features that you would…

  • Prototype Cheat Sheets

    The guys over at Ajaxian alerted me to this sweet resource. Jonathan Snook has created a graphical (and quite attractive) Prototype cheat sheet. As I have stated in the past, I develop web applications for Plymouth State using the Scriptaculous which is built on top of Prototype Javascript Framework. I often find myself referring back…

  • Script.aculo.us Is My New Best Friend

    Ajax is great. DOM manipulation is sexy. I’m fairly new to the Ajax world having only developed with with it since July. MasterWish was my guinea pig and continues to be my playground for all things Web 2.0. Luckily, my manager Ken is pumped up about this whole Web 2.0/Ajax thing which has allowed me…