Javascript Archive

  • Google Maps API part 2: Retrieving Postcodes from your database

    Google Maps API part 2: Retrieving Postcodes from your database

    OK, this is a simple way to get your postcode/ address location returned and displayed via the Google Maps API on your own website. I’ll cover the ‘nearest store locator’ scenario in another post where you want places with a certain radius of an inputted...

    Project info

  • Quick popup/overlay show and hide a layer with Javascript and CSS

    Quick popup/overlay show and hide a layer with Javascript and CSS

    Really quick and simple code in order to show or hide a layer on your webpage using Javascript. This can be used as the basis for things such image galleries, video popups and if you have no soul then it can be used for web...

    Project info

  • Google Maps API part 1: Accurate Geocoding for UK Postcodes

    Google Maps API part 1: Accurate Geocoding for UK Postcodes

    Recently I had to build a system that would take an address, pass it to google and return latitude and longitude values. The result is then stored for later use and display on Google maps. However, firstly I found that the default XML geocoding service...

    Project info

  • Using Javascript/ AJAX to post HTML form data

    Using Javascript/ AJAX to post HTML form data

    Why would you need to do this? Well for instance if you were using 3rd party AJAX APIs and you wanted to capture the data from them perhaps, or maybe you just have a complex form. Or you could use this for form validation to...

    Project info

  • Using SPRY to fetch values from a URL

    Using SPRY to fetch values from a URL

    And then filter an XML file based on the values passed from the URL. If you’re not aware, Adobe now has it’s own AJAX/Javascript library called SPRY for you to use and better yet they include this with Dreamweaver CS3. I assume that you already...

    Project info