用于全屏聚合来自多个 Web 服务的信息的简单应用程序
构建一个简单的“Web”应用程序(它是一个单页)的最简单方法是什么,它只是刷新自身(使用 AJAX 或其他东西)以显示托管在互联网上各种不同服务器上的不断变化的数据?
我想与(例如)Twitter、Facebook、Skype、Google Calendar 以及任何具有某种类型的 Web API 的其他服务进行交互。
除了使用访问这些服务所需的身份验证参数对其进行配置之外,应用程序不需要允许用户交互。
它应该能够全屏运行,不显示 UI 元素,只显示我正在显示的漂亮信息。
我开始使用 Jquery 编写 HTML 文件,但遇到了“同源策略”问题。有办法解决这个问题吗?
我很想用 Html/Javascript 编写它并在 Google Chrome 中运行它,这可能吗?我不知道如何在不托管自己的 Web 服务器作为跨域代理的情况下绕过 SOP。
还有另一种选择仍然非常简单吗?我研究过使用 Windows Vista 侧边栏,但显然你不能拥有全屏小工具。
Whats the easiest way to build a simple 'web' application which is a single page, that just refreshes itself (using AJAX or something) to display continuously changing data hosted on various different servers on the internet?
I want to interface with (for example) Twitter, Facebook, Skype, Google Calendar, and any number of other services that have some type of web API.
The application does not need to allow user interaction other than to configure it with the authentication parameters needed to access those services.
It should be able to run full-screen with no UI elements showing, just the pretty information I am displaying.
I started to write an HTML file using Jquery but I am running into "Same Origin Policy" issues. Is there a way around this?
I'd love to just write this in Html/Javascript and run it in Google Chrome, is that possible somehow? I don't know how to get around SOP without hosting my own web server as a proxy to cross the domains.
Is there another alternative that is still pretty easy and simple? I looked into using the Windows Vista Sidebar but apparently you can't have a full-screen gadget.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现我可以使用 chrome 的命令行选项:
它将允许我解决同源策略,并且由于我将其用于本地应用程序,我可以将应用程序放入虚拟机中并让它运行而无需太多的担心。
I figured out that I can use the command line option for chrome:
And it will allow me to workaround the same origin policy, and since I am using this for a local application I can put the app in a virtual machine and let it run without too much worry.