Erik Mangor

Month

March 2012

2 posts

log function that works across all browsers

So I purchased an early release copy of Secrets of the JavaScript Ninja by John Resig. One of the first things I came across in it is a logging function that is compatible on Chrome, Firefox, Safari, Opera and IE. It works great! No more forgetting about console.log functions that break IE:

Read More →

Mar 7, 20121 note
#javascript #john resig #cross browser
setting, deleting cookies using the jQuery cookie plugin

First you will need to link to the jQuery library and also a great jQuery Cookie plugin which is located on github.

So after you are referencing the library and plugin, to set a cookie all that you need to do is this. This plugin also encodes the data so even if there is white space in the value it will be encoded.

Read More →

Mar 1, 2012
#javascript #jquery
Next page →
2012
  • January
  • February 1
  • March 2
  • April 1
  • May
  • June
  • July
  • August 1
  • September
  • October
  • November
  • December