[Javascript] Help with text file

Andrew Gibson andyg at ihug.co.nz
Wed Oct 15 15:19:33 CDT 2003


Yes. Why not embed the data into the page in XML format ?
Then you can access or manipulate at your leisure with your Javascript code,
or format as suggested below!

The learning curve for XML is not that great for accessing the data.

Andrew Gibson.




> Have you tried XML? Maybe learn to use XSLT to format the data
> (something I haven't yet done)
>
> It sounds like you have a considerable amount of data to parse in
> javascript- if you could make a transformation language do it for you,
> the result would be more "pre-chewed"
>
> Of course, that learning adds to the delivery cost of this project.
>
> The data is a URL? Or a UNC?  If the user is offline, with a local copy
> of the data - and your page is trying to access the local file system,
> then you might be hitting a rights problem.  If you do have local/on
> disk data, consider using the Scripting.FileSystemObject and setting the
> page's rights to allow instantiation of that object.  (it can be a
> security risk though, so it's not available by default, and you wouldn't
> want the whole internet having access to that control on your machine)
>





More information about the Javascript mailing list