On Mar 6, 2009, at 6:35 PM, [email protected] wrote:
thanks for the responses to help me out. I was wondering if there are
any good tutes that can be recommended for a perl programmer to
1) learn enough to set up the javascript itself ( be it in jQuery,
dojo
or anything you prefer)
2) learn enough about how to intercept the ajax request in the
controller and send it back to the page ( ie JSON)?
-tutes in relation to the cause above in areas of JSON (yes aside from
Catalyst::View::JSON) , jQuery or dojo would be really good.
I am sure there's a lotta folks who got catalyst apps built (thanks,
Jon!) but have yet to use AJAX/JSON or any of these good stuff.
Hence, a
lot of work has been put in place to reload forms, preserve parameter
values and so forth. With AJAX,i guess we hope to cut down on
development time and also, to improve the application in terms of
usability.
You ask, I deliver (sort of): The shortest Ajax+Catalyst tutorial in
the world — http://sedition.com/a/2670
That is minimalistic but it does work and gives a jumping
off place. Much easier to hack from a working piece than
getting frustrated trying to make a thing work.
The only thing needed to set up jQuery is shown in the XHTML
template in the examples. Here's a short version; Google hosts
it and you just wrap it in the document ready function like so-
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
jquery.js"
type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
jQuery(function($) {
// your jQuery code goes here!
});
//]]> </script>
</head>
Once you have this running, hit the docs. They'll make more sense
after you follow through this simplistic example.
Have fun!
-Ashley
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/