Skip to content

Instantly share code, notes, and snippets.

@jordy7
jordy7 / gist:2169160
Created March 23, 2012 09:58 — forked from padolsey/gist:527683
Javascript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@jordy7
jordy7 / gist:2169101
Created March 23, 2012 09:48
HTML: starting template
$data = array(
'id' => 'sku_123ABC',
'qty' => 1,
'price' => '19.56',
'name' => 'T-abcShirt',
'options' => array('Size' => 'L', 'Color' => 'Red)'
);
$this->cart->insert();