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:

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

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

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: