I'm using the Template module in a web app. I'm able to output an image inside a div tag without reloading the entire page using the following code in my html template:
<img src='user.pl?rm=getimage&image=docidF' height='350' width='750' align='center' border='1'>
which calls the subroutine:
my $self = shift;
my $q = $self->query;
get the image and set $binData to the image data
print $q->header(-type=>'image/gif', -Content_Length=>length($
which works like a charm. However, I'd like to now do the same thing, except instead of outputting an image, I want to output html without reloading the page. This html would contain the applicable select options based upon a previous answer. I don't want to submit the form and reload the page because honestly, there are too many other variables within the form and it would be a pain to reload.
I haven't been able to find anything remotely close to this yet. I'm assuming I'd use a simlar perl subroutine, but I'm not sure how I would call the subroutine in the html template. Is this possible?