Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Tuesday, October 5, 2010

Javascript this

this refers to the 'owner' of the function in which it occurs.

In the page context this is the window or global object, in a property context it is the object (the object whose property it is).

NB that inline HTML property definitions, eg <element onclick="func()"> are in the page context (probably not what you want if func refers to this).

Followers

Blog Archive