Check if an HTML Checkbox is checked using Javascript
While processing forms in web development, it’s a common requirement to be able to tell if a checkbox has been checked or not.
It’s not …
Read Article →94 articles about javascript development, tools, and best practices
While processing forms in web development, it’s a common requirement to be able to tell if a checkbox has been checked or not.
It’s not …
Read Article →A Javascript Object – now just called JSON – is a collection of values and properties stored as a map.
How would you merge two or more Javascript …
Read Article →NPM stands for Node Package Manager, and is the default way to extend your Node applications.
There are an absolute ton of packages …
Read Article →I have pretty much resigned myself to the fact that in Javascript, there are really only two ways to do a proper search and replace.
Firstly, we need …
Read Article →Using Google Maps V3 Javascript API you can keep the map centered to the browser’s window by using the following trick when resizing the window. …
Read Article →I was trying to restrict a form’s field from only allowing the user to enter alphanumeric characters into it. I looked all around and …
Read Article →I usually run into this problem when dealing with good ol’ Internet Explorer (..any version of IE actually).
The problem is that IE tries to be …
Read Article →So someone’s trying to make their site better by opening a page on your site inside of their site using an iframe?
They’re doing something …
Read Article →I was using Colorbox for some lightbox type effects to show larger images when clicking on thumbnails, but for some reason the background was showing …
Read Article →This one is quite an easy one, but a good one to mention non-the-less as it does definitely come in really handy.
If you would like to get a …
Read Article →If you do not know what the Ternary operator is, or do not use it while you are coding, let me be the first to tell you how much you are missing out! …
Read Article →As a web developer you will know just how much we all love hate Internet Explorer 6 – one of the most dreaded browsers and browser versions that still …
Read Article →It is quite handy to have a function that can tell you how many days there are in February due to the leap year shift of either 28 or 29 days.
Below …
I have a site that is under development and it was made really badly so I needed a quick way to replace all anchors on page to the relevant path.
The …
Read Article →It is quite easy to use javascript to swap between divs or any other html dom elements.
Using the function below you can pass the id of the element to …
What the heck is..
uncaught exception: [Exception… “Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]” …
Read Article →[Exception… “Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]” nsresult: “0x80040111 …
Read Article →The following error message occurs in Firefox 3 when using Firebug.
TypeError: node is null message=node is null
The error can be tracked back to …
Have you ever wanted to temporarily edit a webpage displayed in Chrome or another browser?
Let’s take a look at the Google homepage …
Read Article →If you ever find yourself needing to do some ajax and in turn sending strings of characters via javascript then you should really try …
Read Article →Gmail produces the following error/warning in firebug.
Eb is not defined
function …
Read Article →
I had quite a few problems adding the htmlCode button to a fairly old copy of TinyMCE (I think around version 2.x).
All is resolved now and this is …
Read Article →