Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    HTML::JQuery 0.005

    Download button

    No screenshots available
    Downloads: 117  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brad Haywood | More programs
    Perl Artistic License / FREE
    May 26th, 2012, 17:38 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::JQuery description

    JQuery for Perl programmers

    HTML::JQuery is a Perl module that acts as a bridge between Perl and JQuery/JavaScript. It enables Perl programmers to do as much Javascript as they can using Perl. You can create modals, key sequences and even build javascript functions using Perl subroutines. The aim is simple: More Perl, less Javascript.

    SYNOPSIS

    Inject Javascript/JQuery into your web apps using Perl.

     my $j = HTML::JQuery->new;
     
     # build a javascript function that injects pure javascript,
     # HTML::JQuery generated javascript, or both.
     $j->function(myFuncName => sub {
     my $modal = $j->modal({
     title => 'My Modal Title',
     message => 'The content inside my modal',
     });
     qq {
     alert('We can inject pure javascript like this');
     $modal
     };
     });


    In the above example, when myFuncName() is called an alert box will open, then the modal We can call it using an event handler.. yeah, we can do this with Perl, too.

     $j->onClick({ class => 'button', event => $j->callFunc('myFuncName') });

    So if we add a link, like < a class="button" href="#" >Click Me to activate myFuncName< /a > It will run our newly created function.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    JQuery Perl | Perl module | JQuery | JavaScript | HTML

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM