Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Jifty::Plugin::JQuery
use the jQuery JavaScript library with Jifty

Jifty::Plugin::JQuery - use the jQuery JavaScript library with Jifty


NAME

Jifty::Plugin::JQuery - use the jQuery JavaScript library with Jifty


SYNOPSIS

In your etc/config.yml:


  framework:

    Plugins:

      - JQuery: {}

In your JavaScript files, you can then use any jQuery call:


  jQuery("p.surprise").addClass("ohmy").show("slow");


DESCRIPTION

The jQuery JavaScript library is a small JavaScript library with the intent of providing most of the shortcuts you need it a simple syntax. Since Jifty already uses Prototype, which implements a $() function, this plugin loads jQuery and calls ``noConflict()'' to prevent it from clobbering Prototype's $() function. Thus, to use jQuery, you have to use the jQuery() method rather than $().

You may want to use this idiom from the jQuery documentation if you still want to use this idiom (see http://docs.jquery.com/Using_jQuery_with_Other_Libraries):


  function($){

     // Use jQuery stuff using $

     $("div").hide();

  }(jQuery);


METHODS

init

This initializes the plugin, which simply includes the JavaScript necessary to load jQuery and then disable the jQuery implementation of $().




=cut

sub init { Jifty->web->add_javascript(qw/ jquery.js noConflict.js /); }


SEE ALSO

http://jifty.org, http://visualjquery.com, http://simonwillison.net/2007/Aug/15/jquery/


COPYRIGHT AND LICENSE

This plugin is Copyright 2007 Boomer Consulting, Inc. It is available for modication and distribution under the same terms as Perl itself.

jQuery is available for use in all personal or commercial projects under both MIT and GPL licenses. This means taht you can choose the license that best suits your project and use it accordingly. See http://jifty.com/ for current information on jQuery copyrights and licensing.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy