Category Archives: JavaScript

Stop SOPA

On January 18, 2012, to display opposition to SOPA, the internet killing so-called Stop Online Piracy Act, this blog will be temporarily shut down. If you would like to show your opposition to SOPA and PIPA, I created a small … Continue reading

Posted in JavaScript, Web Development | Tagged | Leave a comment

Web Development for the iPhone: HTML, CSS & JS Support

Safari and Safari for the iPhone support all HTML elements, including deprecated elements and even some proprietary elements that were never part of any W3C specifications. In addtion, Safari is supporting some HTML5 elements, even though the HTML5 specifications have … Continue reading

Posted in Accessibility, Best Practices, Browsers, Character Entities, contactApp, CSS (including hacks), DTD, firebug, HTML, IE7, InvoiceApp, iPhone, JavaScript, Web Development | 5 Comments

iPhone Screen Orientation: Portrait and Landscape

When you tilt your iPhone, the screen changes orientation. The website you developed for the default portrait orientation may not look good in landscape mode, especially if you developed your page for the 480 (h) x 320 (w) screen. In … Continue reading

Posted in Browsers, Character Entities, HTML, iPhone, JavaScript, Web Development | Tagged | 8 Comments

More CSS, XHTML and JavaScript at Community MX

I have been somewhat prolific as a technical writer for Community MX over the past 12 months. If you are interested in any of the articles, they are listed below. I will add new articles to this list as they … Continue reading

Posted in CSS (including hacks), firebug, JavaScript, Web Development | 2 Comments

hover pseudoclass for the iPhone

Since you’re not hovering, there is no hover pseudo class on the iPhone. instead they have touch events. To simulate the :hover pseudo class, include javascript similar to this: var myLinks = document.getElementsByTagName(‘a’); for(var i = 0; i < myLinks.length; … Continue reading

Posted in Best Practices, CSS (including hacks), HTML, IE7, iPhone, JavaScript, Web Development | 8 Comments

jQuery Tutorial: DOM Manipulation and sorting

JQuery is a lightweight JavaScript library that helps you quickly develop events, animations, and AJAX interactions. In this tutorial we go over the following: Setting up your environment $(‘document’).ready() replaces onLoad() Return a DOM object or objects innerHTML and textNodes … Continue reading

Posted in JavaScript, Web Development | 7 Comments

15 JavaScript Gotchas

We all know that JavaScript can trip you up. Here are a 15 common traps that can trip you up when coding javascript. You likely know most of the code on the page, but if you keep these 15 gotchas … Continue reading

Posted in Best Practices, JavaScript, Web Development | 7 Comments

JavaScript Object Literals Simplified

Instantiating Objects You are likely familiar with instantiating strings and arrays in javascript: var myString = new String(); var myArray = new Array(); Array and String are both objects, extended from the Object object. String and Array are objects inheriting … Continue reading

Posted in JavaScript, Web Development | 3 Comments

JavaScript Date Object Methods

Methods of the JavaScript Date Object This is the second half of a two part discussion of the javascript date object. The first half discusses creating, formatting, extending and converting the date object. This section focuses solely on the methods … Continue reading

Posted in JavaScript, Web Development | Leave a comment

CSS & Javascript Character Entity Calculator

Javascript and CSS Entity Conversion Calculator Enter your HTML Entity Character number (such as &#2335 or just 2335 – ट) to get the CSS and JS values for that entity. Explanations on how to use the results are below. Numeric … Continue reading

Posted in Character Entities, CSS (including hacks), JavaScript, Web Development | 11 Comments