On 11/11/06, Karl Guertin <[EMAIL PROTECTED]> wrote:
>
> After two months worth of comments, I've rewritten the 20 minute wiki
> tutorial.
>
> http://docs.turbogears.org/1.0/Wiki20/Page1
>
> The primary enhancement is that I've added contextual lines in the
> examples, which will hopefully reduce the confusion over where to
> insert stuff.
>
> Since nobody is going to get through a written tutorial in 20 minutes,
> I've taken the opportunity to expand the explanations to provide some
> background information and links to places where you can find more
> information on topics the tutorial glosses over. I've tried to take
> special care to explain more exotic Python constructs to language
> newcomers, as we do seem to be getting a number trying to work through
> the tutorial.
>
> Finally, I've modified the ajax portion to use MochiKit's connect()
> functionality to demonstrate proper technique. Remember folks, setting
> onclick attributes is not good style and killing my "open in new tab"
> middle click annoys me greatly.
The only real comment I have is that the $(...) stuff is superfluous,
and could easily be confused with Kid's ${}. You almost never need to
use $() unless you're directly screwing with the DOM. Everything that
takes DOM objects should take a string identifier, and connect is no
exception.
Also, "e.preventDefault()" is probably better said as "e.stop()".
Normally when you do preventDefault you also want stopPropagation, and
that's what stop does. Though it shouldn't make a difference in this
case.
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---