in reply to CGI::Ajax gives 'null' scriptname

I'm guessing that CGI::Ajax wants to run as CGI, not as a mod_perl handler, and therefore it's fetching things like "script name" from the environment. You'll probably have to set up the "subprocess_env" to make it work, and that's different between mod_perl1 and mod_perl2, so you'll have to elaborate to say which mod_perl you have.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: CGI::Ajax gives 'null' scriptname
by belg4mit (Prior) on Dec 15, 2005 at 01:20 UTC
    Quite the opposite, as I read it the documentation is "all about running it under mod_perl".
    We have added support for other CGI handler/decoder modules, like CGI::Simple or CGI::Minimal, but we can't test these since we run mod_perl2 only here.
    For the grandparent, have you tried contacting the authors? They're quite helpful. (It's such a new module few people have much if any experience with it)

    --
    In Bob We Trust, All Others Bring Data.

      I Checked out Brian Thomas. As you can see, he came up with a patch. Maybe notice the problem with passing sub by ref.. I had to make some detour, and I am still not quite sure what I am pasing .. Arnold van Kampen
      my $ref_show = \&Show_HTML; my $show = $ref_show->($env); print $pjx->build_html( $cgi, $show);

      In stead of

      <code> print $pjx->build_html( $cgi, \$Show_HTML($env) );