Tag: JavaScript

  • Create a bullet-proof contact form

    Note: This article has been marked for a quality review and will soon be updated. Contact pages are usually one of the basic building blocks of any website, and while many simple feature an email address for spam bots to pick up and use, or even a handy ‘mailto’ link, the best ones feature a […]

  • 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. […]

  • 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. […]

  • Using Location Awareness

    A future web design trend that I predict is location awareness, and using it to ensure a better user experience. However without access to GPS, most of the world’s desktop PCs will have to rely on other means of telling servers where they are. One way that we can use today to determine the location […]

  • Get going with jQuery!

    If you would have asked me 6 month ago what I thought of Javascript, I would have told you I thought it was a precarious language which never worked for me – and that’s coming from a semi-programmer! To me the language was cumbersome and seemed like it was cobbled together in a very short time […]