NAME

RDF::Base::AJAX

DESCRIPTION

Tie it all together, make your pages into real applications!

wu

  [% ajax->wu({ subj => node.id, pred_name => 'has_visitor', args... }) %]

Get a widget for updating from subj->wu( pred_name, $args )

pagepart_reload_button

new_form_id

  RDF::Base::AJAX->new_form_id()

Gives you a unique id to use for tying html/javascript/rb together.

register_page_part

  [% ajax.register_page_part( divid, update_url, params ) %]

Widgets

  AJAX-widgets to use from tt or perl.

switchingDivs

  Rit::Guides::AJAX->switching_divs( $content_1, $content_2 );

  [% ajax->switching_divs('This is a little, click me to see more.',
                          'This is much more! Bla bla bla.... !') %]

Makes two div's, the first shown and the second hidden. When the first is clicked, it is changed to the second instead (with a nifty scriptaculous shrink/grow).

action_button

  [% ajax.action_button( label, divid, action, args ) %]