I'll add that any developer from a non-Javascript background looking to
learn Javascript should read The Good Parts by Douglas Crockford. It's only
about 100 pages, and it is all you will need to learn the language and the
best way to leverage Javascript's prototypal inheritance model in your
coding (the best ways to add methods to built-in objects, how to code your
own object generators, how to create a reusable function that will add
event-handling capabilities to any object, etc.). Crockford cuts the
language down to the parts you'll actually want to use, and in doing so
actually makes it a lot less painful to write clean and efficient
Javascript.

That being said, the book teaches you the language, but doesn't get into
browser compatibility issues. For that you'll want a framework. I favor YUI
(http://developer.yahoo.com/yui/). It's easy to look at the YUI page and
think it's a collection of tools, like a rich text editor, gallery viewer,
etc., but the real power of it is you can include yahoo-dom-event.js in your
pages and then handle all DOM and event processing in a browser
independent way with their API. If you use JSON, it has a powerful
connection manager and JSON parser as well.

So if you're looking to code things your way, I definitely recommend The
Good Parts to learn how to use the language, and a framework to abstract
away the compatibility issues.

On Thu, Dec 16, 2010 at 10:13 AM, Jean-mathieu Grimaldi <
[email protected]> wrote:

> Hi
>
> As Brian said, jQuery could be your best friend.
>
> To start quickly :
>
> - some exercises with python json, learn how to render json with your
> pylons controllers :
>
>   >> import json
>   >> toto = { 'foo' : 1, 'bar': ('toto', 'abcd',)}
>   >> print json.dumps(toto)
>
> - jQuery dom, ajax and json manipulations in your html templates
> (everything is here http://visualjquery.com), start with inline
> javascript,
>   progress with better factoring in separate .js files
>
> - learn how to build jQuery plugins
>   http://docs.jquery.com/Plugins/Authoring
>
> Best regards
>
> jean-mat Grimaldi
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to