I managed to hack it to work by adding a Content-type
header manually, before the binmode line:
print Content-type: image/jpg\n\n;
Did you try jpeg instead of jpg?
I think jpeg is the standard.
Ok -- good idea... but it didn't work. :-)
I tried changing the header_props to this:
I'm trying to return an ImageMagick JPG image, directly, and getting malformed
header from script. Bad header=ÿØÿà: index.cgi.
I dug through the docs, and the CAPTCHA thread where I learned how to set the
-type to image/jpg and how to only process text/html in cgiapp_postrun.
I have also
Say, has anyone got a minimal example of embedding AJAX into a CGI::APP,
preferably using some library to abstract the Javascript (CGI::Ajax or
SAJAX or something else) ?
http://search.cpan.org/~bct/CGI-Ajax-0.6/lib/CGI/Ajax.pm
I'd like a supercharged ajaxy version of this TreeTable
(To be fair, in Java that will be three separate files for every
function, plus a big honkin' EJB library and an XML
configuration file.
And they will love it, too.)
lol -- interesting idea of fair. Many of the java MVC frameworks are
not all that different from CA in the amount of
Hey folks --
I apologize in advance for asking a tenuously related CGI::App question.
My CA app extends my own framework class which creates a Configuration
object and has methods to get to it, then it calls actions which can get
to the configuration. Fine.
But I have created another object
It's pleasant to see such enthusiasm for a book that hasn't been
written. It might be interesting and fun to create or edit the book
using a wiki. That way, you would end up with a valuable publication
even if no publisher sees it as a moneymaker.
FYI - Atlassian.com will provide a free
CGI::Application::Plugin::Auth adds the ability to authenticate
users in your CGI::Application modules.
I wonder if this plugin shouldn't be called CAP::Authen, rather than
just CAP::Auth. It validates that the user is who he says he is
(authentication), but not whether or not
Howdy folks -
My actions populate a template with params, that template is rendered.
And then, I want to wrap the results inside another layout template.
I'm wondering if the internal (gooey center) template can somehow be
reused? (i.e. I may want all the same params set, but just use a
Hey Michael -
I'm wondering if the internal (gooey center) template can somehow be
reused? (i.e. I may want all the same params set, but just use a
different template file)
I think in most templating systems you just have to make this decision
in your perl. Just load a different