Fetching current location address using GeoLocation and Google Map

Fetching current location address using GeoLocation and Google Map

HTML Geolocation API is used to fetch geographical position of a user. It can be possible only the user approves it. Geolocation is more accurate for the GPS Enabled mobile devices and others less accuracy. In this post how retrieve the address using Geolocation and Google Map API. HTML <html> <body> <input type='button' value='Find

JavaScript Function urldecode, in_array, implode and explode

JavaScript Function urldecode, in_array, implode and explode

In this post, we will be making JavaScript  functions such as urldecode in_array implode explode urldecode function urldecode (str) { return decodeURIComponent(str.replace(/+/g, ' ')) } in_array in_array equivalent function in JavaScript 1.6 Array.indexOf , but it is not supported in older browsers. function in_array(needle, haystack) {   var key = '';     for (key in haystack) {       if (haystack[key]

Top