OZONE Asylum
Forums
DHTML/Javascript
Reading special characters with FileSystemObject
This page's ID:
27909
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quote] Too bad there isn't a non-MS-standard for file access out there [/quote] There is. Java and LiveConnect. But then you have to compile a little I/O class that provides javascripters with the two public methods, readfile and writefile. And you also have to trick the JVM into thinking it's writing/reading to/from an url instead of a local file system (so don't use FileInputStreams, use URL objects and theyre streams instead). It's discussed here for instance: http://www.webdeveloper.com/java/java_jj_read_write.html You can copy/paste/compile the code. If it has to run locally as an applet, you should build the URL from the local file system, otherwise, from any web domain. I think, but am not sure, that a good way to return this would be returning a string. Maybe a char array. Anyhow, this will work on any browser where js/java communication is enabled. (and this also solves locales issues, as Java should handle the locales transparently, and provides you with hundreds of ways to handle this on your own) [small](Edited by [url=http://www.ozoneasylum.com/user/5827]_Mauro[/url] on 05-10-2006 15:29)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »