Man Page: dancer::plugin::ajax
Operating Environment: debian
Section: 3pm
Dancer::Plugin::Ajax(3pm) User Contributed Perl Documentation Dancer::Plugin::Ajax(3pm)NAMEDancer::Plugin::Ajax - a plugin for adding Ajax route handlersSYNOPSISpackage MyWebApp; use Dancer; use Dancer::Plugin::Ajax; ajax '/check_for_update' => sub { # ... some Ajax code }; dance;DESCRIPTIONThe "ajax" keyword which is exported by this plugin allow you to define a route handler optimized for Ajax queries. The route handler code will be compiled to behave like the following: o Pass if the request header X-Requested-With doesnt equal XMLHttpRequest o Disable the layout o The action built is a POST request.AUTHORThis module has been written by Alexis Sukrieh <sukria@sukria.net> perl v5.14.2 2012-03-31 Dancer::Plugin::Ajax(3pm)
| Similar Topics in the Unix Linux Community |
|---|
| Adding the individual columns of a matrix. |
| Detecting unused variables... |
| Find columns in a file based on header and print to new file |
| Weird 'find' results |
| A (ksh) Library For and From UNIX.com |