The announcement for RoR 1.1 shows some nice examples of RJS calls. In
particular I am interested in this one:
In trying to develop a “lightbox” style modal form, I have been
successful in saving the form data via AJAX but I can’t seem to close
the “lightbox”. I am using the Particletree.com “Lightbox Gone Wild!”
Using ‘page.lightbox.deactivate’ throws the error: ‘RJS error:
ReferenceError: Lightbox is not defined’.