Make BUILD_CHART a CGI::App runmode.
Well I guess its not quite as simple as all that... but probably what I would do would somehow make a bridge between CGI::App and CGI::Ajax, possibly via the CGI::App plugin mechanism.
To get it going quickly, you could probably instantiate your CGI::App subclass in BUILD_CHART:my $dbh = MyWebApp->new->dbh
|Replies are listed 'Best First'.|
Re^2: Using CGI::Ajax and CGI::Application::Plugin::DBH
by jrsimmon (Hermit) on Aug 25, 2009 at 21:02 UTC
by trwww (Priest) on Aug 25, 2009 at 23:00 UTC