Active Topics

 



Notices


Reply
Thread Tools
Posts: 529 | Thanked: 46 times | Joined on Sep 2007
#1
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's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#2
The same as on desktop.

No.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Posts: 254 | Thanked: 122 times | Joined on Nov 2009
#3
Normally - no. If there is vulnerability in browser, it may be possible.
 
fragos's Avatar
Posts: 900 | Thanked: 273 times | Joined on Aug 2008 @ Fresno CA USA
#4
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.
__________________
George Fragos
Internet Coach & Writer
Maemo Mapper HowTo
Personal Blog -- 3 Joe's Blog


N810 -- 5.2010.33-1
 
SpeedEvil's Avatar
Posts: 70 | Thanked: 410 times | Joined on Sep 2009 @ Fife, Scotland.
#5
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's Avatar
Posts: 900 | Thanked: 273 times | Joined on Aug 2008 @ Fresno CA USA
#6
Originally Posted by SpeedEvil View Post
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.
__________________
George Fragos
Internet Coach & Writer
Maemo Mapper HowTo
Personal Blog -- 3 Joe's Blog


N810 -- 5.2010.33-1
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#7
http://tiddlywiki.org/wiki/TiddlyWiki

But he asks if started from a remote server and reading/writing on local.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
fragos's Avatar
Posts: 900 | Thanked: 273 times | Joined on Aug 2008 @ Fresno CA USA
#8
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.
__________________
George Fragos
Internet Coach & Writer
Maemo Mapper HowTo
Personal Blog -- 3 Joe's Blog


N810 -- 5.2010.33-1
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:55.