This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Sat Apr 05 02:22:20 -0700 2008 | [yaroslav] |
| |
README | Sat Apr 26 12:43:25 -0700 2008 | [yaroslav] |
| |
Rakefile | Sat Apr 05 02:22:20 -0700 2008 | [yaroslav] |
| |
init.rb | Sat Apr 05 02:22:20 -0700 2008 | [yaroslav] |
| |
install.rb | Sat Apr 05 02:22:20 -0700 2008 | [yaroslav] |
| |
lib/ | Sat Apr 26 12:43:25 -0700 2008 | [yaroslav] |
| |
spec/ | Sat Apr 05 02:32:23 -0700 2008 | [yaroslav] |
| |
tasks/ | Sat Apr 05 02:22:20 -0700 2008 | [yaroslav] |
| |
uninstall.rb | Sat Apr 05 02:22:20 -0700 2008 | [yaroslav] |
README
xhr_flash
=========
xhr_flash is a plugin designed to enable flash[] Rails messaging system to be acessible with AJAX controllers
(when using partials or RJS templates). Your flash messages are displayed by updating certain element on a webpage.
See docs for details.
Example
=======
class MyController < ApplicationController
xhr_flash :notice
# ...
will watch for your <tt>flash[:notice]</tt> and update an element with <tt>id="flash_notice"</tt> when using AJAX
requests.
class MyController < ApplicationController
xhr_flash :error, :id => "emergency"
# ...
will watch for your <tt>flash[:error]</tt> and update an element with <tt>id="emergency"</tt> when using AJAX requests.
Note that you'll need Prototype library. <tt><%= javascript_include_tag :defaults %></tt> in your layout template is
usually enough.
Copyright (c) 2008 Sergey Sazonov <sergsazonov@gmail.com>, Yaroslav Markin <yaroslav@markin.net>, released under the MIT
license




