MacPython Logo from __future__ import *

buy music albums Silver Apples buy mp3 albums Tarrus Riley buy tracks mp3 Kravits buy Reaper albums mp3 buy Kravits albums music buy music Evita CD online albums mp3 Silver Apples download Madonna CD music buy tracks music Kravits download music albums Silver Apples

2007-03-30

MochiKit by Example

Filed under: AJAX, MochiKit, javascript — bob @ 2:13 pm

Ryan Wilcox has recently written an excellent article for Linux Journal: MochiKit by Example. Check it out!

http://www.linuxjournal.com/article/9552

4 Comments »

  1. Sorry if this is only peripherally on-topic.

    Does MochiKit work in “real” XHTML (XHTML served as “application/xhtml+xml”)?

    The only mention I was able to find was

    # Better XHTML compatibility (removed obvious cases where uppercase tagName or nodeName was assumed)

    which is, shall we say, not exactly confidence-inspiring.

    Has it been tested with Mozilla/Opera/Safari under application/xhtml+xml ? What works, and what doesn’t?

    Comment by Jacques Distler — 2007-03-30 @ 7:50 pm

  2. All of it should in XHTML mode. Nearly all of it worked before that patch.

    Comment by bob — 2007-03-31 @ 7:40 am

  3. Umh… well, at the very least, one runs across things like

    // HTML
    /*
    DOM can not be used here because Safari does
    deferred loading of scripts unless they are
    in the document or inserted with document.write
    This is not XHTML compliant. If you want XHTML
    compliance then you must use the packed version of MochiKit
    or include each script individually (basically unroll
    these document.write calls into your XHTML source)
    */
    document.write( …

    I’m guessing there are other gotchas I should be aware of …

    Comment by Jacques Distler — 2007-03-31 @ 10:06 am

  4. That’s not something you use in production. In production you use a single-file packed distribution or individually include specific files. MochiKit.js is a convenience, all it does is dynamically and synchronously load MochiKit.

    Comment by bob — 2007-03-31 @ 1:24 pm

RSS feed for comments on this post.

Leave a comment

I'm WP-Hashcash. I eat spam.

Powered by WordPress