The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IWL::Ajax - helper functions for prototypejs's Ajax object

Functions

updaterCallback (ID, URL, [%OPTIONS])

updaterCallback is a helper wrapper around Ajax.Updater, to be used as a callback to a signal. Upon the signal activation, it will use Ajax.Updater to call a script, which must return valid html syntax that will be used to replace, or update the contents of a container

Parameters: ID - the id of the container which will be updated, URL - the url of the script that will provide the content, %OPTIONS - a hash with the following options:

parameters

A hash or a javascript hash options of the parameters to be passed to the script

evalScripts

True, if any script elements in the response should be evaluated using javascript's eval() function

insertion

If omitted, the contents of the container will be replaced with the response of the script. Otherwise, depeding on the value, the reponse will be placed around the exsting content. Valid values are: after - will be inserted as the next sibling of the container, before - will be inserted as the previous sibling of the container, bottom - will be inserted as the last child of the container, top - will be inserted as the first child of the container

onComplete

A javascript function to be called after the update takes place

LICENCE AND COPYRIGHT

Copyright (c) 2006-2008 Viktor Kojouharov. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.