LEGAL

#===========================================================================

Copyright (C) 2008 by Nik Ogura. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Bug reports and comments to nik.ogura@gmail.com.

#===========================================================================

NAME

CGI::Lazy::Widget::DomLoader

SYNOPSIS

use CGI::Lazy;

my $q = CGI::Lazy->new('frobnitz.conf');

my $domloader = $q->domloader({

			lookups =>  {

					countryLookup => {  #name of resultant DOM object

						sql 	=> 'select ID, country from countryCodeLookup ', 

						orderby	=> ['ID'],

						output	=> 'hash',

						key	=> 'ID',

					},

				},

		});

print $domloader->output;

DESCRIPTION

CGI::Lazy::Widget::DomLoader is an object for preloading useful stuff into a page's DOM, such as lookup queries, or any javascript object that might be desired. This is functionality that is duplicated from the internals of CGI::Lazy::Widget::Dataset, but it's included as a separate object for preloading arbitrary values for other purposes.

METHODS

new (q, vars)

Constructor.

q

CGI::Lazy object.

vars

Hashref of object configs.

output ()

Returns output of object for printing to the web page