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

    JavaScript::Bookmarklet 0.02

    Download button

    No screenshots available
    Downloads: 218  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Timothy Appnel | More programs
    Perl Artistic License / FREE
    April 13th, 2010, 17:45 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    JavaScript::Bookmarklet description

    Utility library and command-line script for converting human-readable JavaScript code into bookmarklet form

    A "bookmarklet" is a little JavaScript script that's intended to be run from a web browser's bookmarks bar or menu. The reason they work as "bookmarks" is that the JavaScript source code is crammed into the form of a URL using the "javascript:" scheme.

    JavaScript::Bookmarklet is based on a text filter John Gruber of Daring Fireball fame wrote that makes writing --- and especially revising --- JavaScript bookmarklets much more pleasant.

    Developing or modifying bookmarklets can be irritating, to say the least, because of this requirement that the JavaScript code be in the form of a URL.

    So the problem developing bookmarklets is this: You want to write and edit normal JavaScript code, but you need to publish hard-to-read URLs.

    This package provides to means of using this functionality -- as a utility method that can be called in an application and as a script that can be used on the command-line or in editors like BBEdit.

    SYNOPSIS

     use JavaScript::Bookmarklet qw(make_bookmarklet);

     my $src = < < JAVASCRIPT
     var str = document.title;
     alert(str);
     JAVASCRIPT

     my $bookmarklet = make_bookmarklet($src);
     print $bookmarklet;

    The output of this script would be:

     // javascript:var str = document.title;alert(str);
     var str = document.title;
     alert(str);


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    JavaScript to bookmarklet | bookmarklet form | JavaScript converter | JavaScript | bookmarklet | converter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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