I thought not. I apoligize for posting the following code, because it
is very basic, however I would really like to get this working. So
with that, here are the steps I followed.
I downloaded the phonegap project and opened it Xcode. I set the url
to point localhost:3000/demo.htmt in the Xcode project. Demo.html
includes gap.js. I know this is working because when I visit demo from
a regular browser it states that phonegap is not supported.
I am only trying to get this to run on an emulator.
The one step I did not follow from the Getting Started With PhoneGap
tutorial on the wiki, was to change the bundleidentifier provided by
Apple.
If anyone could help that would be great. I will also provide any
other info needed.
Thanks a lot
Rcwhitejr
DEMO.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<title>Location testing</title>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-
scale=2.0;"/>
<link rel="stylesheet" href="styles.css" type="text/css"
charset="utf-8">
<script src="gap.js" ></script>
<script>
<script>
initGap = function() {
Device.init();
Device.Location.callback = updateLocation;
}
updateLocation = function(lat,lon) {
document.getElementById('lat').innerHTML = lat;
document.getElementById('lon').innerHTML = lon;
}
</script>
</script>
<body onload="initGap();">
<div id="container">
<div id="lat">
...
</div>
<div id="lon">
...
</div>
<a href="#" onclick="Device.Location.init();">Update</a>
</div>
</body>
</html>