Hey

for a project of mine i was looking into a way how to retrieve the GPS coordinates in a regular web site, since there was nothing there i started playing around with the PalmServiceBridge object i found in used in some mojo files. I couldn't get it to work, but feel there must be a way. Here is what I do so far:

<html>
<head>
<meta name = "viewport" content = "width = device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;">
</head>
<body>
<a href="javascript:handleGo()">test PalmServiceBridge()</a>
<script>
function res(o)
{
alert("callback");

}
function handleGo()
{
var reqObject = new PalmServiceBridge();
try
{
reqObject.call( "palm://com.palm.location/getCurrentPosition", {onservicecallback:res,onsuccess:res,onfailure:res,onServiceCallback:res,onSuccess:res,onFailure:res } );
}
catch(e) {alert(e);}
}
</script>
</body>
</html>

It does some spinning but always reloads the current page without any callbacks working, so since i am not an expert in that matter at all, is there something that can be done, use the call method differently? use some other classes as well?

Any idea is appreciated. I want to use it for my project:
code.google.com/p/geo-location-javascript/

Best,
Stan