iHack, therefore iBlog

June 20, 2006

Great JavaScript-in-Ruby (RJS) Tutorial: What I Learned

Filed under: Software — Dr. Ernie @ 10:05 am
My colleague Luke Burton has posted a wonderful
RJS
Tutorial
. [Read more] for a short list of the new things it taught
me.

? You can insert RJS calls in RHTML
documents, not just RJS documents
? The relevant documentation is ActionView::Helpers::PrototypeHelper
and ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods
? RJS handles (most) error catching for
me
? You can invoke the AJAX method directly,
for debugging purposes
? Prototype’s element_by_id syntax is way
cool: $(“id”)

Thanks,
Luke!

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.