pat wrote on 13 Dec 2003 at Sat, 13 Dec 2003 23:38:32 GMT:
[color=blue]
> am trying to find out how to read/load data from an ini file
> (and save it too)[/color]
Certain browsers might be able to read the data into a variable as a
string (I forget how), but they certainly cannot save it again.
JavaScript wasn't developed to do that sort of thing.
Bart Van der Donck wrote:
[color=blue][color=green]
>> am trying to find out how to read/load data from an ini file (and save it
>> too)[/color]
>
> Only if your .ini file resides on the same domain, you can read it by
> javascript in modern browsers. A popular technique is the use of
> iframes:
>
> <iframe src="C:\YOUR_IN I_FILE.INI"></iframe>[/color]
<OT>
JFTR:
If you consider `localhost' a domain and you dare call IE a "modern
browser" this might work. Generally, not backslashes serve the purpose
of path delimiters in URIs but forward slashes do. And a URI scheme
identifier is missing, too, Mozilla/5.0 for example will probably not
show anything (at least it will only work on Windows.)
could do everywhere. However, the former will only work if the
parent document is accessed via the local file system or if the UA
is borken/unpatched. AFAIK & IIRC, for Mozilla/5.0 the bug has
been fixed in rv:1.4 (CMIIW), and thus access from `http:' to
`file:' is no longer possible.
[color=blue]
> Saving back is not possible. You 'll need a server process for that.[/color]
Just to clarify: Server processes cannot and will not access the
`iframe' element (since it is rendered client-side), but the
resource it refers to.
</OT>
PointedEars
--
apprentice.c - parses /etc/magic to learn magic
Comment