Australian postcodes with Geolocation

Recently I needed Australian postcodes with Geolocation to work on a project. I have foked the list form randomecho; modified & converted to CSV & JS/JSON format. You can download or fork from here.

Javascript: change div or span content

document.getElementById("imageid").src="../template/save.png";
document.getElementById("myAnchor").innerHTML = "Shohag Bhuiyan";
document.getElementById("myAnchor").href = "http://www.shohagbhuiyan.com";
document.getElementById("myAnchor").target = "_blank";

Accessing variables from other functions without using global variables


var MyApp = {}; // Globally scoped object
function foo(){
MyApp.color = 'green';
}
function bar(){
alert(MyApp.color); // Alerts 'green'
}