Hide an element with jQuery whilst scrolling

Note: This article has been marked for a quality review and will soon be updated. Today I came across an interesting problem that no amount of Google searches could solve. So I had to knuckle down and come up with a solution – and surprisingly it was much more simple that it had first appeared.… Continue reading Hide an element with jQuery whilst scrolling

10 Best Practises for jQuery Beginners

Note: This article has been marked for a quality review and will soon be updated. jQuery is the one of the most popular JavaScript frameworks available; it enables developers to write code that is easy to understand but that also allows really powerful functionality. There are a boat-load of tutorials out there on jQuery, and… Continue reading 10 Best Practises for jQuery Beginners

Force JS replace to work on all occurrences of needle

When manipulating strings in JavaScript a useful method to know about is the replace() method. It take 2 parameters – the needle and the haystack. So if you wanted to replace ‘cat’ with ‘dog’ it might look something like this: var myString = “The cat jumped over the fence”; var myNewString = myString.replace(“cat”,”dog”); document.write(myNewString); Great it worked.… Continue reading Force JS replace to work on all occurrences of needle

Using absolute and relative positioning

Now to many people this might be a really simple concept, that is the concept of using absolute and relative positioning; but I remember when I started web design I wasn’t really sure what either meant. So this article is aimed at explaining why you might want to use the two properties in conjunction with… Continue reading Using absolute and relative positioning

Element Organization

So what do I mean when I say element organisation? Well put simply I’m referring to the way in which we group HTML elements in terms of either tables, divs or HTML5. Now to be honest I believe that tables these days are somewhat obsolete and I wouldn’t even bother teaching it to new web… Continue reading Element Organization