<br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 12:06 PM, <<a href="mailto:adam.prime@utoronto.ca">adam.prime@utoronto.ca</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Quoting Fulko Hew <<a href="mailto:fulko.hew@gmail.com">fulko.hew@gmail.com</a>>:<br>
<br>
> Hijacking this thread...<br>
><br>
> Can we have a talk on simple AJAX in Perl?<br>
> I know Kees gave us a talk, but I'm just wanting to do simple RPC<br>
> and something like dynamically updating a table, or portion of a screen.<br>
><br>
> I must be stupid, but I've hit a bump in the learning curve.<br>
<br>
</div>The server side of AJAX isn't really that much different than the<br>
server side of CGI really. you just take a request and compose a<br>
response. Depending on what javascript library you are using (if you<br>
are using one at all) will determine what your page generates. It<br>
could be XML, it could be html, it could be JSON, it could be anything.<br>
<br>
The "hard" (or potentially hard) part is the javascript, but most of<br>
the ajax i've written was for the mootools library, and the actual JS<br>
boils down to this:<br>
<br>
new Ajax(url, {<br>
method: 'get',<br>
update: $('replace_me')<br>
}).request();<br>
<br>
Which just fetches the URL 'url', and stuffs whatever it gets back<br>
from that URL into the element with the ID replace_me. Obviously this<br>
is a pretty simple example of ajax, but it's a start.</blockquote><div><br>Still too high level (abstract)<br>I like/need something around the 500 foot level, not 10,000 feet. :-)<br><br></div></div><br>