[Javascript] Opening HTTP Text File
Tim Lewis
twlewis at softhome.net
Wed Jul 11 13:56:44 CDT 2007
Thanks Peter, immediately after I posted, I had a "Duh" moment. It
dawned on my that File System Object is the Local File System Object.
I will research the ajax request.
Tim
>
> This isn't canonical, but as I understand it, inherent in the FSO is
> the assumption that you are opening a file on the local file system
> (even though you may be using a mapped drive). I don't think it has
> the capacity to use HTTP.
>
> However, you DO have the XMLHTTP object, which will make an HTTP
> request and bring back the text in its entirety (with no security
> issues like the FileSystemObject). You can get the full content with
> the ResponseText (?) property, so you don't have to try to parse it as
> XML. Just Google "Javascript ajax request" and you should get a ton
> of hits on this subject.
>
> Cheers,
>
> Peter
>
> From: "Tim Lewis" twlewis at softhome.net
>
> Can the ActiveX FSO OpenTextFile be used in Javascript to open a
> Sharepoint based HTTP text file, or is it only for local text files?
>
> Thank you,
> Tim
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list