Chris Phillips

Results 3 issues of Chris Phillips

When converting a string like '9.59' to a number I have always used the syntax: var a = '9.59'; a = a \* 1; JSLint seems to find this method...

article-request

try { return JSON.parse(value); } catch(e) { return value; } This is quite interesting, but caution that it is IE8+ dependent.

Chrome 14 (the current version as of this posting Oct 2011) now supports printing hidden iframes properly. so change line 30: if ($.browser.opera || (/chrome/.test(navigator.userAgent.toLowerCase()))) to: if ($.browser.opera)

printElement