The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IWL::Script - A script object.

INHERITANCE

IWL::Object -> IWL::Script

DESCRIPTION

The script object provides the <script type="text/javascipt"> html markup, with all it's attributes.

CONSTRUCTOR

IWL::Script->new ([%ARGS])

Where %ARGS is an optional hash parameter with with key-values corresponding to the attributes that a regular <script> markup would have.

METHODS

setSrc (SOURCE)

Sets a "src='SOURCE'" attribute to <script>.

Parameter: SOURCE - a URL to a javascript file

appendScript (STRING)

Appends the strings as a child of the script object

Parameter: STRING - the js string

prependScript (STRING)

Prepends the strings as a child of the script object

Parameter: STRING - the js string

setScript (STRING)

Adds the strings as a child of the script object

Parameter: STRING - the js string

getScript

Returns the script string from the object

LICENCE AND COPYRIGHT

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:

Around line 128:

You forgot a '=back' before '=head1'