Jonathan Mangin wrote:

Well, just to finish the story...
I needed to register the subs this way.
They also need to be defined as run_modes in setup.


   my $activity_url = 'fitness.pl?rm=getActivity';
   my $daily_url = 'fitness.pl?rm=dispDaily';
   my $pjx = new CGI::Ajax('getActivity' => $activity_url,
                           'dispDaily' => $daily_url);
   my $ajax_js = $pjx->show_javascript();

   my $params = {ajax_js => $ajax_js,


Interesting. For a moment I thought we'd cracked it as the AJAX output appeared without headers after registering the url & runmode rather than the sub-routine. Unfortunately it reports invalid NHSNo for every entry, including valid ones. But I think it's progress?
--
Richard Jones
Leeds, UK
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to