GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::Plugin::Prototype(3) User Contributed Perl Documentation Catalyst::Plugin::Prototype(3)

Catalyst::Plugin::Prototype - Plugin for Prototype

    # use it
    use Catalyst qw/Prototype/;

    # ...add this to your tt2 template...
    [% c.prototype.define_javascript_functions %]

If you don't want to include the entire prototype library inline on every hit, you can use "script/myapp_create.pl Prototype" to generate static JavaScript files which then can be included via remote "script" tags.

    # ...add this to your template...
    <script LANGUAGE="JavaScript1.2" type="text/javascript"
         src="/prototype.js"></script>
    <script LANGUAGE="JavaScript1.2" type="text/javascript"
         src="/effects.js"></script>
    <!-- .... -->


    # ...and use the helper methods...
    <div id="view"></div>
    <textarea id="editor" cols="80" rows="24"></textarea>
    [% uri = base _ 'edit/' _ page.title %]
    [% c.prototype.observe_field( 'editor', uri, { 'update' => 'view' } ) %]

Some stuff to make Prototype fun.

This plugin replaces Catalyst::Helper::Prototype.

prototype

    Returns a ready to use L<HTML::Prototype> object.

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper

Sebastian Riedel, "sri@oook.de"

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
2007-04-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.