如何托管 Google 小工具?它是如何运作的?

发布于 2024-08-26 05:52:11 字数 404 浏览 5 评论 0原文

我刚刚花了 5 个小时查看 Google 小工具网站和常见问题解答,但我仍然不知道如何托管小工具。

我通过阅读 Google 文档得出的结论是:

  1. 我可以使用 XML、JavaScript 等编写小工具。
  2. 可以将小工具添加到 iGoogle 等。Google
  3. 可以为您托管小工具。
  4. 小工具可以托管在其他地方吗???

以上所有信息都没有回答我的问题。例如,通过 jQuery 或 Dojo Toolkit,我可以下载 JavaScript 框架并使用它。使用 Google 小工具,我找不到框架的下载链接。为什么? Google 提供框架吗?如果不是,为什么文档表明小工具可以托管在任何地方?我完全困惑了。

非常欢迎简短的解释或一些有用的链接!多谢!!!

I just spent 5 hours by checking Google gadgets websites and FAQs, but I still have no idea how to host a gadget.

What I've figured from reading the Google documentation:

  1. I can write gadgets with XML, JavaScript etc..
  2. Gadgets can be added to iGoogle etc..
  3. Google can host the gadgets for you.
  4. Gadgets can be hosted anywhere else???

All of the above information doesn't answer my question. For instance, with jQuery or Dojo Toolkit, I can download the JavaScript framework and use it. With Google gadgets, I can not find a download link for a framework. Why? Does Google provide its framework? If not, why does the documentation indicate that gadgets can be hosted anywhere? I am totally confused.

A brief explanation or some helpful links are very welcome! Thanks a lot!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

旧话新听 2024-09-02 05:52:11

我只是想自己弄清楚这一切,大多数信息似乎都是关于构建小工具,而不是托管它们的基础设施。

从本质上讲,它的工作方式似乎是您需要:

  1. 在某个地方托管定义小工具的 XML 文件。这可以是网络上的任何地方。
  2. 一个 Google Gadget 容器 - 您告诉它您的小工具的 XML 文件的 URL,它就会神奇地将您的 XML 转换为呈现小工具。例如 iGoogle http://www.google.com/ig、Google 朋友群 http://www.google.com/friendconnect/ 和 Shindig http://shindig.apache.org/
  3. 实际显示小工具的站点 - 这可以是具有内置功能的站点,例如 iGoogle,也可以是您可以在其中放置小工具的嵌入 HTML。此嵌入 HTML 将根据容器的不同而有所不同。如果您转到 iGoogle 中已添加或位于其目录中的小工具,则可以看到该小工具的嵌入代码。对于 Google 朋友群,您可以使用一段 HTML 和 Javascript,在其中输入 XML 文件的网址和您的 Google 朋友群网站 ID。

我认为 iGoogle 等某些网站执行 1、2 和 3 的事实最初让我感到有些困惑。

I've just been trying to get my head around all this myself and most of the information out there seems to be about building gadgets, not the infrastructure of hosting them.

Essentially the way it seems to work is that you need:

  1. Somewhere to host the XML file that defines the gadget. This can be anywhere on the web.
  2. A Google Gadget container - you tell this the URL of the XML file for your gadget and it does the magic to turn your XML into a rendering gadget. Examples are iGoogle http://www.google.com/ig, Google Friend Connect http://www.google.com/friendconnect/ and Shindig http://shindig.apache.org/
  3. A site to actually display the Gadget - this can either be a site with the functionality inbuilt such as iGoogle or can be any website on which you put the embed HTML for the gadget. This embed HTML will vary according to the container. If you go to a gadget in iGoogle, that you've either added or is in their directory, you can see the embed code for the gadget. For Google Friend Connect, there's a snippet of HTML and Javascript that you can use, in which you put the URL of the XML file and your Google Friend Connect site id.

The fact that some sites such as iGoogle do 1, 2 and 3 is I think what initially made things slightly confusing for me.

染火枫林 2024-09-02 05:52:11

您可以创建一个定义 xml 规范(参考)的小工具并托管它可以放在您想要的任何位置(即您的 dropbox 公共文件夹)。 xml 将有一个内容部分,其中包含小工具的 html。您可以在其中包含您想要使用的任何 js 库(即 jquery、dojo、您自己的 js 文件)的脚本标签。

如果您想在 iGoogle 中安装该小工具,则需要转到“添加内容”,而不是从目录中选择小工具,而是单击“添加 rss 或小工具”链接并输入小工具 xml 文件的 URL。容器(在本例中为 iGoogle,但也可以是 Orkut、MySpace 等)将提取您的小工具规范并呈现小工具。

这里是开始小工具开发的好地方

You can create a gadget defining an xml spec (reference) and host it anywhere you want (ie. your dropbox public folder). The xml will have a Content section with the html for the gadget. There you can include script tags with any js library you want to use (ie. jquery, dojo, your own js files).

If you want to install the gadget in iGoogle, you need to go to 'Add Stuff' and instead from picking a gadget from the directory, you click on 'add rss or gadget' link and enter the url to your gadget xml file. The container (in this case iGoogle, but could be Orkut, MySpace, etc) will pull your gadget spec and render the gadget.

Here's a good place to start with gadget development

你列表最软的妹 2024-09-02 05:52:11

除了 iGoogle 和其他小工具容器之外,您还可以在任何可以包含脚本的页面上托管小工具。 Google 有一个网站可以为您生成在您的页面上显示小工具的脚本:http: //www.google.com/webmasters/gadgets/foryourpage/

生成的代码使用 www.gmodules.com。不过我还没有找到更多信息。

Beside iGoogle and others Gadgets containers, you can also host gadgets on any page where you can include a script. Google has a site that will generate for you the script that will show the gadget on your page: http://www.google.com/webmasters/gadgets/foryourpage/

The generated code uses www.gmodules.com. However I've not found much more information.

狼性发作 2024-09-02 05:52:11

我想现在回答这个问题已经晚了。以下是一些可以帮助其他人的评论。

Google 可以为您托管这些小工具吗? - 是的,

小工具可以托管在其他地方??? - 是的。您可以在自己的服务器上托管,或者dropbox公共文件夹也可以。

创建和托管小工具的最简单方法是使用 Google 小工具编辑器。这就是我们拥有自己的谷歌小工具所需要的一切。

Google 小工具编辑器的链接为 http://www.google.com/ig /ifr?url=gge.xml。您可以在此处编辑和托管小工具。以下是截图供参考。

获得要测试的内容后,单击文件菜单,然后选择“保存”,如下所示。

在此处输入图像描述

保存(并为 xml 文件选择一个好名称)后,您将看到它从 hello.xml 更改为其他内容。

在此处输入图像描述

然后,就像右键单击并将位置保存到剪贴板一样简单。这是 Firefox 中的样子。

在此处输入图像描述

就是这样。指向您的 Google 小工具的链接将位于您的剪贴板中。看起来像这样......,
http://hosting.gmodules.com /ig/gadgets/file/117733801868661729078/my-first-gadget.xml

I think its late to answer the question. Here are few comments which could help others.

Google can host the gadgets for you?? - Yes

Gadgets can be hosted anywhere else??? - Yes. You can host on your own server or dropbox public folder does work too.

The easiest way to create and host gadget is to use google gadget editor. Which does all we need to have our own google gadget.

The link to google gadget editor is http://www.google.com/ig/ifr?url=gge.xml. Here you can edit and host the gadget. Below are the screenshots for reference.

Once you've got something you want to test, click the file menu, and select 'SAVE' as shown below.

enter image description here

Once you've saved (and selected a good name for your xml file), you'll see it changes from hello.xml to something else.

enter image description here

Then, it's as easy as doing a right-click and saving the location to the clipboard. Here's how that looks in Firefox.

enter image description here

That's it. The link to ur google gadget will be in ur clipboard. Which looks something like this..,
http://hosting.gmodules.com/ig/gadgets/file/117733801868661729078/my-first-gadget.xml

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文