On Thursday 19 October 2006 08:53, RA Jones wrote:
> Having at last had some success with something AJAX-based (the demo
> described in perl.com 'Using Ajax from Perl'), I now want to try and use
> AJAX in my web apps. It looks like the necessary modules are CGI::Ajax &
> CAP::HTMLPrototype.
>
> My first rather lame attempt at putting AJAX inside a C::A app caused an
> error: 'No head/html tags, nowhere to insert. Returning javascript
> anyway'. Presumably because the headers were not getting out as I
> returned the template through build_html(). But even if the html *had*
> got displayed it probably wouldn't have worked as I didn't have any
> javascript associated with it. The problem is I don't have the first
> clue about javascript, and don't really know where to start.
>
> Is it possible to implement AJAX without learning javascript? Are there
> any resources I could use to get going with CGI::Application? Finally
> has the CAP::Ajax project has been abandoned?

It is possible to use AJAX without knowing much javascript, but I think you 
will enjoy the experience a bit more if you are comfortable with what 
javascript is, where and how it can be inserted into HTML, and how AJAX 
works.  As for CAP::HTMLPrototype, it can be useful, but I would think about 
how to do this yourself using only the prototype javascript library inserted 
into your HTML.  It makes things a lot more transparent (at least for me) and 
opens up the possibility of doing things yourself that might not be possible 
just with the perl bindings offered by the plugin.

Sean

---------------------------------------------------------------------
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