maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   What files can be accessed from Javascript run in web browser ? (https://talk.maemo.org/showthread.php?t=38858)

Darius2006 2009-12-31 00:39

What files can be accessed from Javascript run in web browser ?
 
Hi,

please let me know what are local file read/write limitations
for a javascript run from web page on a remote / local web server
in maemo web browser.

Can javascript coming with web page on a remote web server
write to / read from a local file on maemo ?

Bundyo 2009-12-31 08:12

Re: What files can be accessed from Javascript run in web browser ?
 
The same as on desktop.

No.

KiberGus 2009-12-31 08:25

Re: What files can be accessed from Javascript run in web browser ?
 
Normally - no. If there is vulnerability in browser, it may be possible.

fragos 2009-12-31 21:46

Re: What files can be accessed from Javascript run in web browser ?
 
Javascript doesn't provide a way to access files. Javascript can write and read cookies on the client computer. This is for security reasons. When a web site does file operations they are to files stored on the server. I use PHP for that purpose.

SpeedEvil 2009-12-31 23:20

Re: What files can be accessed from Javascript run in web browser ?
 
Umm - wrong.

I use tiddlywiki quite a bit.
This is a javascript wiki - tiddlywiki.com - that can be simply downloaded and run locally with no net, saving files locally.

The internal browser is really annoying with this, as it can't remember the users descision to say 'yes, I want this to be able to write'.

fragos 2009-12-31 23:50

Re: What files can be accessed from Javascript run in web browser ?
 
Quote:

Originally Posted by SpeedEvil (Post 448432)
Umm - wrong.

I use tiddlywiki quite a bit.
This is a javascript wiki - tiddlywiki.com - that can be simply downloaded and run locally with no net, saving files locally.

The internal browser is really annoying with this, as it can't remember the users descision to say 'yes, I want this to be able to write'.

Tiddlywiki is written in Java which a fully capable language. Despite the name similarity Javascript and Java are totally different. Javascript is standard with all browsers and it doesn't write or read files, only cookies. I don't think, but could be wrong, that the tablet doesn't have a Java runtime.

Bundyo 2010-01-01 10:44

Re: What files can be accessed from Javascript run in web browser ?
 
http://tiddlywiki.org/wiki/TiddlyWiki

But he asks if started from a remote server and reading/writing on local.

fragos 2010-01-01 20:45

Re: What files can be accessed from Javascript run in web browser ?
 
I looked at the downloaded code and it appears to execute the java class code on the client although that appears to be an option which I didn't determine how was set. It also appears that the ap can import "tiddlies" from local files or a server implying it can write both places as well. It also appears that javascript is used to manipulate cookies with application parameters stored on the client. I downloaded the ap html and jar files to my N810 and the application does startup but I didn't actually try to use it.


All times are GMT. The time now is 07:14.

vBulletin® Version 3.8.8