// behaviors, events how it compares to flapjax Protoscript is a simplified scripting language for creating Ajax style prototypes for the Web. With Protoscript it's easy to bring interface elements to life. Simply connect them to behaviors and events to create complex interactions. Here's an example that fades & closes the image when the user clicks on it. (It's live, so go ahead and try it!) $proto('img#avatar', { Click: { onClick: { Fade: { opacity: {to: 0}, onComplete: {Close : {} } } } } }); The protoscript above says: for an image with id avatar, fade it out when the user clicks on it and close it when the fade completes. By combining different behaviors with different elements and events you can create complex interactions without writing JavaScript. Want to see it in action? Here are the current set of behaviors. Click any of them to see live examples.
The YUI Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. YUI is available under a BSD license and is free for all uses. The YUI project includes the YUI Library and two build-time tools: YUI Compressor (minification) and YUI Doc (documentation engine for JavaScript code).
I'm working on this mostly to get familiar with JSNI and structuring in GWT. The sample is far from complete, but it's enough if all you want is the JSNI to interface with YUI's DragDrop. All you need to look at are the Draggables and Droppables classes a