Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
NinjaScript is a JS framework, built on jQuery with two principles in mind. #1: Enriching your website with JS behaviors should be as easy as specifying CSS styles. #2: Making your site degrade gracefully without JS shouldn't take any extra work. NinjaScript provides a simple, CSS-like syntax for applying behaviors, including transformations and event handlers, to your elements. NS handles it from there: as a developer, you won't ever have to think about binding or event delegation again. In addition, NinjaScript and its partner gem NinjaHelper make it trivial to build Rails applications that work perfectly with or without JavaScript. At last, true graceful degradation without the suffering. Help us caption & translate this video! http://amara.org/v/FNkG/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In this video presented at LA RubyConf 2011, Evan Dorn introduces NinjaScript, an unobtrusive JavaScript framework built on jQuery designed to simplify the integration of JavaScript with web applications while ensuring graceful degradation for users without JavaScript enabled. The presentation outlines several key goals and features of NinjaScript: - **Unobtrusiveness**: NinjaScript allows developers to enhance websites semantically without adding extra markup for JavaScript behaviors. This is crucial for maintaining a clean and accessible HTML structure. - **Graceful Degradation**: The framework promotes the importance of maintaining website functionality when JavaScript is turned off. Dorn emphasizes the need for websites to still provide a comprehensive user experience for those utilizing screen readers or browsing with JavaScript disabled, helping to represent functionality accurately to search engines and automation tools. - **Persistent Behavior**: A major theme of NinjaScript is the concept of automatic rebinding, which allows built behaviors to be applied consistently even when new elements are dynamically added to the DOM. This overcomes limitations typically faced with traditional event binding in JavaScript, where newly created elements may not retain their assigned behaviors. Dorn also highlights several predefined behaviors available in NinjaScript, such as converting forms into AJAX submissions, implementing decay effects for elements, and creating watermark inputs for forms. He mentions that developers can define their own behaviors, allowing for reusable code that enhances the development process. In addition, the video discusses the challenges addressed by Mizugumo, a gem that works alongside NinjaScript, especially in creating AJAX-friendly Rails applications without additional markup or JavaScript overhead. Mizugumo ensures that links and forms remain functional regardless of the presence of JavaScript, providing intuitive user interactions. The demonstration showcases a Rails project using both NinjaScript and Mizugumo, displaying features like AJAX functionality, graceful degradation, and user prompts for deletion actions. Dorn stresses the frameworkâs user-friendly nature and its potential for future enhancements, including better integration with various JavaScript environments beyond jQuery. To conclude, the main takeaways from the talk include the importance of unobtrusive JavaScript, maintaining functionality across different environments, and the utility of predefined and custom behaviors in enhancing web application development. Contributions from the community are welcomed in this open-source project, encouraging ongoing improvements in NinjaScript.
Suggest modifications
Cancel