David P.C. Wollmann > JavaScript-Framework-jQuery > JavaScript::Framework::jQuery::Plugin::funcliteral

Download:
JavaScript-Framework-jQuery-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.05   Source  

NAME ^

JavaScript::Framework::jQuery::Plugin::funcliteral - Add literal JavaScript code to document ready

SYNOPSIS ^

 # add literal text to output of $(document).ready(function (){...});
 my $plugin = JavaScript::Framework::jQuery::Plugin::funcliteral->new(
    funccalls => [
        '$("div ul").foobar();',
        '$("div ul").barfoo();'
    ]
 );

 print $plugin->cons_statement;

 #  $("div ul").foobar();
 #  $("div ul").barfoo();

DESCRIPTION ^

Support for addition of literal function call or other JavaScript code to the body of the $(document).ready(...) call text.

METHODS ^

cons_statement( )

Return the text of the JavaScript statements passed in the constructor, joined with newlines.

AUTHOR ^

David P.C. Wollmann <converter42 at gmail.com>

COPYRIGHT & LICENSE ^

Copyright 2009 David P.C. Wollmann, all rights reserved.

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

syntax highlighting: