Playmaker
Playmaker

Reputation: 1456

Client side scripting to make changes in a file

Is there any client-side script that would be able to make changes to a file on the hosts computer? (Intention stated below)

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.

So i thought i could make an appcache (manifest within the application package) which will cache the file, and on press of an update button a script would run which would make some change to the manifest which would force the cached resource to be reloaded.

I searched a lot, but no results.

Any suggestions as to how it can be done. Or any other way to get it to work?

Upvotes: 0

Views: 320

Answers (2)

Limey
Limey

Reputation: 2772

Here is a link to another SO quesitob that has a list of APIs you could use to get your stock price.

Webservice to get stock quotes?

Upvotes: 1

PitaJ
PitaJ

Reputation: 15012

I don't think so. This could be a huge security problem if it existed.

If you had to, you could send an ajax request to the server to create a file it creates with the current prices, and add it to the appcache file.

Upvotes: 3

Related Questions