English 中文(简体)
客户端脚本以更改文件
原标题:Client side scripting to make changes in a file

是否有任何客户端的脚本能够更改主机计算机上的文档? (意向说明如下)

I am creating a packaged app for chrome which can show some online data, and make it available even when offline. There is a certain thing, for e.g. a webpage i want to show/store (but i cannot get/read its contents due to it being on different origin). To show when online, i can use iframe, but am unable to preserve it for offline.

所以我想我可以做一个缓存文件的缓存程序(应用程序软件包中最明显的情况), 按下更新按钮时,一个脚本会运行,对显示器进行一些修改,从而迫使缓存资源重新装入。

我搜索了很多,但没有结果。

关于如何做到这一点的任何建议。 或以任何其他方式使其发挥作用?

最佳回答

我不这么认为,如果存在,这可能是一个巨大的安全问题。

如果您必须这样做, 您可以向服务器发送 ajax 请求, 以创建一个以当前价格创建的文件, 并将其添加到 Appcache 文件 。

问题回答

这是另一个SO的遗迹的链接, 它有一张可以用来获取股票价格的 API 列表 。

Webservice 获取股票报价?





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签