----- Original Message -----
From: "RA Jones" <[EMAIL PROTECTED]>
To: "List - CGI-Application" <[email protected]>
Sent: Saturday, October 21, 2006 6:26 PM
Subject: Re: [cgiapp] CGI::App & CGI:Ajax nearly working - please help with
last bit
> 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]
>
Darn, I thought it would work.
I'm not sure of the significance of the [% page_js = BLOCK %] stuff.
I also suspect it's trivial, but you might try it. Don't forget:
<html>
<head>
[% page_js %]
--Jon
---------------------------------------------------------------------
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]