chiranjib 的个人资料Exploring The Knowledge照片日志列表更多 工具 帮助

日志


6月1日

Google Gear

http://cache.gizmodo.com/images/2006/05/GoogleWifi.jpg
Only Offline!!!


One of the most frequently requested features for Google's web applications is the ability to use them offline. Unfortunately, today's web browsers lack some fundamental building blocks necessary to make offline web applications a reality. In other words, we found we needed to add a few new gears to the web machinery before we could get our apps to run offline. Gears is a browser extension that we hope -- with time and plenty of input and collaboration from outside of Google -- can make not just our applications but everyone's applications work offline.

Going Offline

The first thing you need to run a web application offline is the ability to start it without an Internet connection. This is the purpose of the LocalServer module.

The LocalServer API and the manifest file are the key components that cache your application's resources and make it available offline.

Storing User's Data

Applications that are more than just static files have data that is typically stored on the server. For the application to be useful offline, this data must be accessible locally. The Database module provides a relational database for storing data.

When an offline application reconnects, you will need to synchronize any changes made in the local database with the server. There are many different approaches to synchronizing data, and there is no single perfect approach.

An additional feature of the Google Gears database is Full-Text Search, providing a fast way to search text within a database file.

Performance

When synchronizing large amounts of data, you may find that the database operations begin to affect the responsiveness of the browser. The WorkerPool allows you to move your database operations to the background to keep the browser responsive.

Google Gears Installation

Your web application needs to detect whether or not Google Gears is installed on a user's machine before calling the APIs, and also to determine when to display an installation prompt to the user.

Always initialize Google Gears using gears_init.js . If Gears is installed, then google.gears will be defined. If Gears isn't installed, you can direct the user to a customized installation page, as shown below.

Note: Always use gears_init.js to access Gears. Other uses may not be supported in the future.



<script src="gears_init.js"></script>
<script>
if (!window.google || !google.gears) {
location.href = "http://gears.google.com/?action=install&message=<your welcome message>" +
"&return=<your website url>";
}
</script>


Use the URL in the code above to access the Google Gears installation page. Substitute your customized message and your URL in the parameters.

Parameters:

  • action: Include the 'action' parameter with the value 'install' to cause the Google Gears installation page to use the messagereturn parameters. and
  • message: Provide any text up to 150 characters. This message appears at the top of the installation page. For example: "Install Google Gears to enable MyGreatApp's offline features!"
  • return: Provide your application's URL. The user will be directed back to this URL when installation is complete.
Install the beta version

评论 (1)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

没有名字发表:

Hi,Do you have second hand lcds, used laptop lcds and used LCD displays? Please go here:www.sstar-hk.com(Southern Stars).We are constantly buying re-usable LCD panels.We recycled LCDs.The re-usable panels go through strictly designed process of categorizing, checking, testing, repairing and refurbishing before they are re-used to make remanufactured LCD displays and TV sets.Due to our recent breakthrough in testing and repairing technology of LCD, we can improve the value for your LCD panels. website:www.sstar-hk.com[chigjhhffeaigah]

9 月 24 日

引用通告

此日志的引用通告 URL 是:
http://chiranjibtech.spaces.live.com/blog/cns!5FA626CE469BF89C!197.trak
引用此项的网络日志