Rene Schickbauer > Maplat-0.995 > Maplat::Web::FiltertableSupport

Download:
Maplat-0.995.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.995   Source  

NAME ^

Maplat::Web::FiltertableSupport - alternative way of submitting hidden filterTable rows

SYNOPSIS ^

Alternative way of submitting filterTable hidden rows via serialization.

DESCRIPTION ^

The dataTable/filterTable jQuery plugin normally submits only visible rows.

There are multiple ways to force it to submit the hidden rows, too. Currently, this rows are re-added to the table before submitting the webform.

This module supports an alternative way. Just add a hidden input field called "xx_filter_table_xx" and fill it with a jQuery serialization of the hidden rows data fields before submit. The FiltertableSupport module then takes this input field during the prefilter phase, de-serializes it and re-injects all fields into the CGI params hash, effectivly making the whole process (mostly) transparent to the actual rendering modules.

Configuration ^

    <module>
        <modname>filtertablesupport</modname>
        <pm>FiltertableSupport</pm>
        <options>
            <!-- no options required -->
        </options>
    </module>

A note of caution ^

This module is highly experimental and did not work on every webform i tested. But in some special cases it might be worth the effort: Re-injecting a huge number of table rows at once into the DOM might trigger problems in the browser.

prefilter

Internal function

serializedToCGIParam

Internal function

Dependencies ^

This module does not depend on other webgui modules.

SEE ALSO ^

Maplat::Web

AUTHOR ^

Rene Schickbauer, <rene.schickbauer@gmail.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008-2011 by Rene Schickbauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: