The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

MODULE

Nginx::Simple::Ajax

METHODS

my $ajax = new Ajax($self);

Initialize with Nginx::Simple object.

$self->read

Read values into an ajax object.

$self->param( $id )

Akin to Nginx::Simple->param.

$self->get( id => 'foo' )

Returns data as scalar given an element_id.

$self->add( foo => 'bar' || javascript => "alert('foo!')" )

Enqueue an item to be generated into javascript xml.

$self->send

Send Ajax returned XML.

$self->reset

Reset the object.

Author

Michael J. Flickinger, <mjflick@gnu.org>

Copyright & License

You may distribute under the terms of either the GNU General Public License or the Artistic License.