Skip to main content

Benx Shen's Library tagged reference   View Popular

01 Oct 09

VI Cheat Sheet

  • [[

    Jump to top of section (default: top of document)

    ]]

    Jump to bottom of section (default: bottom of document)

    H

    Jump to top of screen ('4H' will Jump to 4 lines below top of screen)

    L

    Jump to bottom of screen ('4L' will Jump to 4 lines above bottom of screen)

    G

    Goto EOF ('4G' will Goto Line 4)
20 Jun 08

Javascript - Event order

  • When you use event capturing



                   | |
    ---------------| |-----------------
    | element1 | | |
    | -----------| |----------- |
    | |element2 \ / | |
    | ------------------------- |
    | Event CAPTURING |
    -----------------------------------


    the event handler of element1 fires first, the event handler of element2 fires last.




    Event bubbling



    When you use event bubbling



                   / \
    ---------------| |-----------------
    | element1 | | |
    | -----------| |----------- |
    | |element2 | | | |
    | ------------------------- |
    | Event BUBBLING |
    -----------------------------------


    the event handler of element2 fires first, the event handler of element1 fires last.

  • addEventListener()
    method explained on the Advanced models page.
    If its last argument is true the event handler is set for the capturing phase, if it is
    false the event handler is set for the bubbling phase.
  • 1 more annotations...
24 Nov 07

Ajaxian » URI vs. URL: What’s the difference?

  • I think simplest explanation works best:


    URI identifies. URL locates.


    or


    URI is a name. URL is a location.

  • You got it all wrong. It is not about if a URI is a name is a locator or not. Or if the URI has a file extension or not. (URI never has the concept of file extension, it is that you think it has a file extension. ). It is about if a URI is bound with a network protocol. In other words, if you can get something back from the URI. W3C didn’t realize this earlier. Now, the term URL and URN is deprecated because the distinction is arbitrary.


    Just use URI from now on.


    See the URI spec http://www.ietf.org/rfc/rfc3986.txt.

  • 1 more annotations...
1 - 15 of 15
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo