Archive for September, 2010

JavaScript Console Fix V2 Now with iOS!

Monday, September 13th, 2010

The consoleFix.js has been a popular script, helping people overcome problems in the various browsers, but now, there are more features including support for your iPhone.  consoleFix is a small JavaScript file that removes the annoyances of cross browser logging. The use of console.log is now a standard used by not only Firebug, but WebKit Inspector and Internet Explorer Developer Tools. Firebug is ubiquitous with front end web development, and while it provides dozens of tools like DOM inspection and network sniffing, the logger gets the vast majority of use.

While log, warn, and info may be standard, using the groupCollapsed method will throw an error in Chrome, and the seemingly innocuous debug will throw an error in IE. Opera’s Dragonfly is an improvement over it’s anemic predecessor, but it still rivals IE’s feeble text-only logger and thus, only supports a small subset of console methods.

(more…)

Video: HTML5 Canvas Tips and Tricks

Friday, September 10th, 2010

In this introductory level video by Bob Byron, you will learn the basics of the HTML5 Canvas capabilities, how to write the code, and other tips and tricks for working with dynamic raster graphics.

See the video.

Video: Career Development Tips

Friday, September 10th, 2010

At our last meeting, we had the honor of having a guest speaker give a presentation on Business and Career Development Tips for AJAX Programmers.
(more…)

Plain Text vs innerText vs textContent

Wednesday, September 1st, 2010

innerText and textContent are properties that get or set the text of an element or all its children. Internet Explorer implemented innerText in version 4.0, and it’s a useful, if misunderstood feature. WebKit also has innerText, carefully copying from, and even improving upon IE; and additionally has the standards compliant textContent, which we shall see, is no where near as useful and is in fact quite different. Firefox has textContent but not innerText, and a common mistake is writing code that retrieves one or the other, assuming the result will be the same (it’s not). Opera has the property, but it is little more than an alias of textContent, which to me is analogous to false advertising.
(more…)