更改服务器的HTML应用程序成为独立的桌面应用程序 [英] Change server HTML app into self-contained desktop app

查看:189
本文介绍了更改服务器的HTML应用程序成为独立的桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个简单的Web服务器,它需要公众链接到包含图片网址和名称的谷歌文档,并输出其内容打印友好的HTML照片目录。

I wrote a simple web server that takes the public link to a google document containing image urls and names and outputs a print-friendly HTML photo directory with its contents.

我创造了它的志愿者组织,我将不再能够保持参与,我需要传递到生成目录我的继任者的能力。

I created it for a volunteer organization that I will no longer be able to stay involved in. I need to pass on the ability to generate that directory to my successor.

我不相信,我可以信任自己,以保持该Web应用程序的长期的组织需要。我希望不是,我可以将其更改为一个自包含的程序,该组织的成员可以通过电子邮件四处谁需要产生的目录。

I'm not confident that I can trust myself to maintain that web application for the long term the organization needs. I'm hoping that instead I can change it to a self contained program, that members of the org could email around to whoever needed to generate the directory.

我的第一个想法是做一个.html文件中可以在浏览器中打开,但我不能从谷歌与阿贾克斯下载CSV数据,因为它是跨域。谷歌搜索后似乎没有被解决的办法。

My first thought was to make a .html file the could open in a browser but I can't download the CSV data from google with Ajax, because it is cross domain. After googling there doesn't seem to be a way around this.

有一个简单的框架?我想我可以与Adobe AIR做到这一点,但我preFER东西,只是去掉了跨域安全功能。

Is there a straightforward framework? I would guess I could do it with Adobe AIR, but I'd prefer something that simply removed the cross domain security feature.

我可以采取嵌入一个UIWebView到Mac应用程序的时间,但因为我想写的应用主要是在HTML中,我不得不建立一个桥梁,让Web视图进行跨域请求呢吧?此外,它不是跨平台的。

I could take the time to embed a UIWebView into a Mac app, but since I want to write the app primarily in HTML, I'd have to create a bridge to let the web view make a cross domain request anyway right? Also it's not cross platform.

任何其他的想法?我该如何打包我的应用程序作为一个桌面应用程序,而不是Web服务?

Any other ideas? How can I package my app as a desktop application instead of a web service?

推荐答案

您可以使用闪光灯周围的跨域XHR得到。 CrossXhr可以通过常规的HTTP服务器提供服务的应用程序做到这一点。我从来没有尝试过用一个静态的,文件送达的web应用。请按照下列指示:

You can get around the cross domain XHR using flash. CrossXhr can do it from apps served by regular http servers. I've never tried it with a static, file-served webapp. Follow the instructions here:

HTTP://$c$c.google.com/p/ crossxhr /维基/ CrossXhr

这篇关于更改服务器的HTML应用程序成为独立的桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆