AJ AX R ails on - Slash7slash7.com/presentations/ajax_on_rails.pdf · scriptaculous rjs plugin....
Transcript of AJ AX R ails on - Slash7slash7.com/presentations/ajax_on_rails.pdf · scriptaculous rjs plugin....
ongetting started
AJAX Rails
javascriptused to be the
enemy
javascript is cool?suddenly
why?good support
professional toolspublicity!
AJAX is...asynchronousjavascript and
xml
AJAX is...a round trip to the server,
without reloading
Rails App
Browser Request
Web Server
Regular Request
Rails App
Browser Request
Web Server
AJAX Request
and Rails is...freakin’ sweet!
rails
javascript
rails
ajax
sexy preview
what you can do
links
regular link
ajax link
is turned into javascriptthat code...
forms
regular form
ajax form
is turned into javascriptthat code...
RJS
RJSruby javascript templateslike views, but output jsway cooler than sliced
bread
other cool stuffdrag & dropedit in place
slidersautocomplete
& more...
bits & bobs
the stuff you get
rails includesprototype.js
scriptaculousrjs plugin
where?yourapp/public/javascripts
js helpersJavaScriptHelper
JavaScriptMacrosHelper
ScriptaculousHelper
PrototypeHelper
troubleshootin’!refox!rebug
web developer extension
learn morethomas fuchs’ talkwww.slash7.com
api.rubyonrails.org