Javascript Love



I’ve been a busy bee releasing stuff into the wild lately. Most of them have been Ruby on Rails plugins but I’ve also been doing some Javascript work. Here’s two tidbits that I developed at the Los Angeles Times.

Inplace_preview

Inplace_preview is the first. It monkeypatches ScriptaculousInPlaceEditor to give it a preview mode. It also includes an ability to do an ajax call for rendering the preview. It comes in handy when using an InPlaceEditor for editing HTML but with the ajax rendering anything would be possible.

Here’s an example (if you save you’ll get a big-ol error since we don’t actually save here):

Click Here to Edit…

Gallery_scroller

Gallery_scroller is small Javascript library for creating a scrolling gallery that we’re using on more projects then I expected. It requires Prototype and Scriptaculous effects.js libraries.

Here’s an example:

The documentation on both of these goes into detail on how they work, so check out their github sites!

This entry was posted in Coding, Los Angeles Times and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>