in reply to Re: javascript through template toolkit to catalyst
in thread javascript through template toolkit to catalyst

Ok so i managed to do this without CGI. It's a bit ugly but it works. in my HTML file(technically my .tt2 file) i have this in my javascript area:
for(m=0;m<selected.length;m++){ document.form.values.value += selected[m].name+','; }
then I have this in my actual html area:
<form method="post" name="form" action=" [% Catalyst.uri_for('/agg/su +bmit') %] "> <INPUT TYPE="hidden" NAME="values">
and then in my catalyst controller ( which is agg.pm with submit as the method) :
my $selected = $c->request->params->{values};
from here i can parse the string into an array and proceed with my program.

Replies are listed 'Best First'.
Re^3: javascript through template toolkit to catalyst
by Anonymous Monk on Apr 01, 2009 at 06:10 UTC
    That is CGI!!!!