Undefined variable in JavaScript

August, 17th 2011 | JavaScript

Sometimes, in JavaScript, you may need to check if a variable has already been declared in the current page. If you are using, in fact, a variable not declared or initialized (declared in a transpare

Show/Hide of Google Maps with JavaScript

February, 23rd 2011 | JavaScript

Working with Google Maps API, we might have the need to act on the visibility of a map. In this case, it is crucial to consider the existence of a bug (described here). In fact, modifying the attribut

ReplaceAll with JavaScript

February, 10th 2011 | JavaScript

The behavior of the JavaScript replace function might be misunderstood by an inexperienced developer. Differently from what is expected, it replaces just the first occurrence of a substring. var stri

Optimizing Web Pages

December, 20th 2010 | JavaScript | 1 comment

Web pages optimization is a subject of topical interest. Among the techniques we can use to improve the performance of our pages, it is very important to keep under a certain limit the number of DOM e