Hi,
You cannot access the request data that is being to the JSON server via the
JavaScript API.  If you really want to see what is being sent, you can try
to install a network traffic analyzer like wireshark (
http://www.wireshark.org/).

Austin

On Mon, Jan 5, 2009 at 3:34 AM, Prognose85 <[email protected]> wrote:

>
> Hi,
>
> I want to know if its possible to access the JSON Request Objects in
> my Geolocation Client. For Example in this code, so that I can
> visualize the JSON Reqeust Objects to see what Wifi Towers , mac
> Adresses .... are found by the Geolocation methods.
>
> I want something like a function showJSONRequestObjects. The best
> thing would be, if i could create JSON objects in my code out ohf the
> JSON Request which I visualize in a html table.
>
> ....
> ...
>  addStatus('Getting location...');
>
>
>  function successCallback(p) {
>    var address = p.gearsAddress.city + ', '
>                  + p.gearsAddress.region + ', '
>                  + p.gearsAddress.country + ' ('
>                  + p.latitude + ', '
>                  + p.longitude + ')';
>
>    clearStatus();
>    addStatus('Your address is: ' + address);
>  }
>
>  function errorCallback(err) {
>    var msg = 'Error retrieving your location: ' + err.message;
>    setError(msg);
>  }
>
>  try {
>    var geolocation = google.gears.factory.create('beta.geolocation');
>    geolocation.getCurrentPosition(successCallback,
>                                   errorCallback,
>                                   { enableHighAccuracy: true,
>                                     gearsRequestAddress: true });
>
>
>  } catch (e) {
>    setError('Error using Geolocation API: ' + e.message);
>    return;
>  }
> .....
> ....
>
> When anybody knows how to access the JSON Geolocation Request Objects,
> let me know!!
>
> Thanks!!
>
>
>

Reply via email to