google-gears

How does Google calculate my location on a desktop?

醉酒当歌 提交于 2019-12-28 03:18:07
问题 Right this is confusing me quite a bit, i'm not sure if any of you have noticed or used the "my location" feature on google maps using your desktop (or none GPS/none mobile device). If you have a browser with google gears (easiest to use is Google Chrome) then you will have a blue circle above the zoom function in Google Maps, when clicked (without being logged into my Google Account) using standard Wi Fi to my own personal router and a normal internet connection to my ISP, it somehow manages

Trouble with Sending JSON object over POST to Google Gears

北慕城南 提交于 2019-12-25 02:26:11
问题 Google Gears provides a geolocation API that can take LAC-CELLId information and supply lat-long data. The API is detailed here: Geolocation API I am using PHP. Here's the code that I wrote: <?php $urlstring="http://www.google.com/loc/json"; $ch=curl_init($urlstring); $cell_towers = array(); $row=new stdClass(); $row->location_area_code=3311; $row->mobile_network_code=71; $row->cell_id=32751; $row->mobile_country_code=404; $cell_towers[]=$row; $param = array( 'host'=> 'localhost', 'version' =

Passing an ActionScript JPG Byte Array to Javascript (and eventually to PHP)

最后都变了- 提交于 2019-12-24 19:33:44
问题 Our web application has a feature which uses Flash (AS3) to take photos using the user's web cam, then passes the resulting byte array to PHP where it is reconstructed and saved on the server. However, we need to be able to take this web application offline, and we have chosen Gears to do so. The user takes the app offline, performs his tasks, then when he's reconnected to the server, we "sync" the data back with our central database. We don't have PHP to interact with Flash anymore, but we

Client Side Persistence (Storage)

两盒软妹~` 提交于 2019-12-18 06:12:00
问题 In my demos, I'd like to avoid using traditional DBs and store all the data on the client side, e.g. information submitted via a form. What alternatives do I have for that. I've heard about Gears but I don't have any practical experience. Can I also store binary information besides strings, e.g. an image? 回答1: You may have a look on YUI's StorageUtility. It can use HTML 5, Google Gears or SWF on a fallback basis. 回答2: Your options are somewhat limited I'm afraid. Cookies Depending on your

“google is undefined”

試著忘記壹切 提交于 2019-12-13 05:49:02
问题 I'm using Gears which works well in FF3 and Safari; IE6/7 both report a "google is undefined" error on page load, appearing in gears_init.js. A quick web search showed that Javascripts by Google are actually causing problems in IE7. Does anybody have an idea for a workaround? 回答1: This is probably because IE6/7 don't have gears installed. That means the google related code won't be available. You probably just want to do something like: if ( !window.google ) { alert("please install google

http get/post request and google geolocation api

若如初见. 提交于 2019-12-12 09:27:48
问题 I'm using the web application at http://m.rummble.com website and when I click find my location using gears. The application returns my current location (approximate city location) with various establishments in a given mile radius. To further understand how this works, I opened up wireshark and what I notice is that a POST request is sent to www.google.com/loc/json. Then the google server responds with 200 OK and location data in JSON format. I understand this part. The next step is what I

Handling file uploads with JavaScript and Google Gears, is there a better solution?

末鹿安然 提交于 2019-12-07 03:35:36
问题 So - I've been using this method of file uploading for a bit, but it seems that Google Gears has poor support for the newer browsers that implement the HTML5 specs. I've heard the word deprecated floating around a few channels, so I'm looking for a replacement that can accomplish the following tasks, and support the new browsers. I can always fall back to gears / standard file POST's but these following items make my process much simpler: Users MUST to be able to select multiple files for

offline data storage & access using jQuery

为君一笑 提交于 2019-12-04 13:36:35
问题 does anybody have any experience writing up a offline data storage & access app on jquery. my server side app would be an ASP.Net app. basically, i would be providing a trimmed down version of my web app so that users could access some of the data while they are offline and can sync the data when they connect again. I have heard of google gears but wanted to hear from people who have used it or who know more on this subject. 回答1: It's difficult to impossible to do without a plugin since your

offline data storage & access using jQuery

与世无争的帅哥 提交于 2019-12-03 08:35:13
does anybody have any experience writing up a offline data storage & access app on jquery. my server side app would be an ASP.Net app. basically, i would be providing a trimmed down version of my web app so that users could access some of the data while they are offline and can sync the data when they connect again. I have heard of google gears but wanted to hear from people who have used it or who know more on this subject. It's difficult to impossible to do without a plugin since your only option is a Cookie which has a 4k limit. Looks like the jquery-store that others have suggested uses

Is there a secure browser cache?

走远了吗. 提交于 2019-12-02 01:39:35
问题 Note: this is a different problem to https - it's related to privacy security I'm trying to figure out if there's a way to take load off our server [cache] by pushing information to the browser. Is there any technology that will provide secure caching that is bound to a session? We have privacy-sensitive data that's often used, but will not change much. Re-requesting updates from the server/database all the time will reduce the sensitivity. The solution cannot rely on any page being held open