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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    HTML::Prototype::Js 1.48

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Sebastian Riedel and Marcus Ramberg | More programs
    Perl Artistic License / FREE
    December 25th, 2008, 07:57 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::Prototype::Js description

    Prototype library, embedded in Perl

    HTML::Prototype::Js is a prototype library, embedded in Perl.

    SYNOPSIS

     our $prototype = do { package HTML::Prototype::Js; local $/; < DATA > };

    This is the actual Prototype library embedded in a perl __DATA__ section, for easy inclusion in HTML::Prototype.

    NEW SYNTAX

    The prototype library provides some functions and classes which effectively change the basic syntax of the JavaScript you write.

    $(element)

     This function takes an element / element list and gets all string elements using document.getElementbyId. This is probably one of the most common functions when using javascript for web development, so it will save you a lot of typing.
    Class

     This uses fucntion references to allow namespace-like Class structures in javascript.
    Object.extend

     Simple inheritance for javacsript. Will set all properties of the child in the parent.
    Function.bind

     Allow function refs to be full object method references, through the use of extend and apply
    Try.these

     Simple try/catch for a list of functions, will return the return value of the first that doesn't throw an exception.
    Array.push

     implement push for arrays. returns number of elements in result.
    Function.apply

     Call a function on a given object, using eval.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    prototype library | HTML prototype | Perl module | Perl | HTML | prototype

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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