I was just trying to store a value and retrieve it in phonegap and jquery via mds applaud.
function sendData() {
alert("SendData function");
window.localStorage.setItem("LatStore",position.coords.latitude);
var LatValue = window.localStorage.getItem("LatStore");
$("#LastLat").html(LatValue);
Does the local storage work in android 2.3.5. I did compile with 2.3.3 as the target.
TIA
Dred
Simon’s comment was the answer but I don’t know how to make a comment an answer. I need a stackoverflow for stackoverflow.
Well the problem seems to be that position is out of scope in your sendData function. If you have made sendData the success callback of a geolocation query you’ll need to write it as “function sendData(position) {” – Simon MacDonald 11 hours ago