Skip to main content

Benx Shen's Library tagged tutorial   View Popular

14 Oct 09

A re-introduction to JavaScript - MDC

  • It's useful to start with an idea of the language's history. JavaScript was created in 1995 by Brendan Eich, an engineer at Netscape, and first released with Netscape 2 early in 1996. It was originally going to be called LiveScript, but was renamed in an ill-fated marketing decision to try to capitalise on the popularity of Sun Microsystem's Java language — despite the two having very little in common. This has been a source of confusion ever since.
  • var name = o && o.getName();
  • 10 more annotations...
15 Jul 08

Floatutorial: Step by step CSS float tutorial

    • Floatutorial takes you through the basics of floating elements
      such as images, drop caps, next and back buttons, image galleries, inline lists
      and multi-column layouts.


      General info


  • Tutorial 5. Floating next and back buttons using lists



    Float a simple list into rollover "back" and next "buttons".

  • 3 more annotations...
21 Jun 08

Javascript Closures

/* Assign the constructor's parameter to a property of the object:- */

jibbering.com/...closures.html - Preview

closure programming javascript tutorial *i_learning* *精華* article

  • Closure

    A "closure" is an expression (typically a function) that
    can have free variables together with an environment that binds
    those variables (that "closes" the expression).
  • Example 2: Associating Functions with Object Instance Methods
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...
1 - 20 of 109 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo