IWL::RPC::Request - an RPC Requst helper class
The RPC Request helper class is an abstract class, which provides RPC functionality (via XMLHttpRequest) to IWL Objects
Registers an event handler to the given event. The event will be processed by a handleEvent(3pm) call in the handling script
Parameters: EVENT - The event name to register. URL the script url, which will provide the event handling. PARAMS - a hash reference of parameters to be passed to the handler subroutine as a parameter. OPTIONS - a hash reference of options to be interpretted by the handler
A javascript expression to be evaluated before the request takes place. It receives params as an argument
A javascript expression to be evaluated after the request takes place
A boolean flag, causes the event to be emitted only once
An indication will be shown that a response is active, if the parameter exists. It can be a hash with the following options:
If true, the screen will not be covered, only the mouse cursor will indicate that a response is active (default: false)
If true, the screen will be fully covered (default: false)
The opacity of the covering element (default: 0.8)
The id of element to be updated. If empty, the document body is updated. The following parameters are also taken under consideration if this one is specified:
True, if any script elements in the response should be evaluated using javascript's eval() function
If omitted, the contents of the container will be replaced with the response of the script. Otherwise, depeding on the value, the reponse will be placed around the exsting content. Valid values are:
Will be inserted as the next sibling of the container,
Will be inserted as the previous sibling of the container,
Will be inserted as the last child of the container,
Will be inserted as the first child of the container
Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.