远程运行大型 RIA 应用程序的挑战

发布于 2024-08-17 05:50:05 字数 391 浏览 3 评论 0原文

我有一个大的丰富的互联网应用程序文件(qooxdoo,js,html)。用户使用浏览器指向 Web 服务器并运行它。问题是用户每次访问该网站时都需要很长时间才能加载应用程序。

有没有办法以某种方式“捆绑”并在本地保存应用程序并让用户在本地引用它?因此,网址将类似于 [c:/]/home/myfiles/application/index.html 而不是 http: //站点/应用程序路径

我正在考虑使用 java 的 jar 文件之类的东西来捆绑应用程序并使其可以在浏览器中本地运行,但应用程序可以到达外部网站来获取数据。

有什么想法吗? 提前致谢。

I have a big rich-internet-application file (qooxdoo,js,html). The users use their browser to point to the web server and run it. The problem is that it takes a long time for the users to load the application every time they visit the site.

Is there a way to somehow "bundle" and save the application locally and have the user refer to it locally? So, the url would be like [c:/]/home/myfiles/application/index.html instead of http://site/path-to-app?

I was thinking something like java's jar files to bundle the application and make it runnable locally in browsers, yet the application reaches the external website to get data.

Any ideas?!
Thanks in advance.

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

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

发布评论

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

评论(2

和我恋爱吧 2024-08-24 05:50:05

浏览器应该缓存所有文件,因此应用程序的第二次加载应该非常快。如果情况并非如此,可能您没有使用应用程序的 qooxdoo 构建版本,或者您禁用了构建过程的优化。

但是有两种方法可以获得类似桌面的应用程序:

  1. 您可以将上传到服务器的文件作为 zip 提供并让用户解压缩。如果您不需要网络服务器来运行这些文件,那应该可以。

  2. 如果你想构建一个真正的桌面应用程序,你应该看看 Titan [1],它可以将 Web 应用程序带到桌面。

    如果

[1] http://www.appcelerator.com/products/titanium-desktop/

The browser should cache all the files so the second load of the app should be quite fast. If thats not the case, maybe you are not using the qooxdoo build version of your application or you disabled the optimizations of the build process.

But there are two ways to get a desktop like application:

  1. You can offer the files you upload to the server as zip and let the user unzip it. If you don't need a web server to run the files, that should work.

  2. If you want to build a real desktop application, you should have a look at titanium [1] which can bring a webapp to the desktop.

[1] http://www.appcelerator.com/products/titanium-desktop/

烟花肆意 2024-08-24 05:50:05

从文件系统运行 qooxdoo 应用程序,就像 Martin Sad 一样,应该不是问题。但您必须确保“crossDomain”属性(例如“qx.io.remote.Request”[1])设置为“true”,否则浏览器的同源策略(SOP)会阻止对服务器的请求。

[1] http://demo.qooxdoo.org/当前/apiviewer/#qx.io.remote.Request~crossDomain

Running the qooxdoo application from the file system, like Martin sad, should not be a problem. But you have to ensure that "crossDomain" property for example "qx.io.remote.Request" [1] is set to "true", otherwise the same origin policy (SOP) from the Browser blocks the requests to the server.

[1] http://demo.qooxdoo.org/current/apiviewer/#qx.io.remote.Request~crossDomain

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