ksublondie has asked for the wisdom of the Perl Monks concerning the following question:
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?sub getimage{ my $self = shift; my $q = $self->query; my $error=''; ... get the image and set $binData to the image data ... print $q->header(-type=>'image/gif', -Content_Length=>length($ +binData)+1).$binData }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: html output to div tag without submitting the form
by ikegami (Patriarch) on Mar 16, 2010 at 23:13 UTC | |
by dont_you (Hermit) on Mar 17, 2010 at 05:54 UTC | |
|
Re: html output to div tag without submitting the form
by CountZero (Bishop) on Mar 17, 2010 at 07:09 UTC | |
|
Re: html output to div tag without submitting the form
by ww (Archbishop) on Mar 16, 2010 at 23:30 UTC | |
|
Re: html output to div tag without submitting the form
by leighsharpe (Monk) on Mar 16, 2010 at 23:51 UTC | |
by ikegami (Patriarch) on Mar 17, 2010 at 00:18 UTC | |
by ksublondie (Friar) on Apr 22, 2010 at 19:41 UTC |