<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body STYLE="font:10pt verdana; border:none;">
For certain things I am enthusiastic about <b><font color="#000066">Scripting.FileSystemObject</font></b><b><font color="#000066"></font></b>
<p><font color="#000000">But it is worth noting that :</font><font color="#000000"></font>
<p><font color="#000000">1) As all ActiveX (without special plug in) it
is for IE only</font>
<br><font color="#000000">2) IE puts up a warning confirm box that could&nbsp;
strongly dissuade users from choosing to OK it.</font>
<br><font color="#000000">3) It requires (AFAIK) Windows Scripting Host
to be enabled in order to work - and it is WSH that can lay users open
to such things as worms in HTML email.</font><font color="#000000"></font>
<p><font color="#000000">You make your own judgement on how appropriate
it will be for your marquee.</font><font color="#000000"></font>
<p><font color="#000000">hth</font><font color="#000000"></font>
<p><font color="#000000">Rodney</font>
<p>BEKIM BACAJ wrote:
<blockquote TYPE=CITE><font color="#330066">Here you are, Steve</font>&nbsp;<font color="#330066">use
an activeX object,</font><font color="#330066">&nbsp;(if you are working
on a intranet site-application, I prefer you, convert it into HTA.</font><font color="#330066">Use
FSO (the file system object) that can read, write, create, delete, move,
append, etc to/from the system folder/file,</font><font color="#330066">without
prompting the user about the ActiveX activity).</font>&nbsp;Here is the
JScript function to read an external .txt file:&nbsp;<b>function readExtTextFile(){</b>
<br><b>&nbsp;&nbsp;&nbsp; var readIt = 1;</b>
<br><b><font color="#000066">&nbsp;&nbsp;&nbsp; fso=new ActiveXObject("Scripting.FileSystemObject");</font></b><b><font color="#000066">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
gotText=fso.OpenTextFile("TheTextFile.txt", readIt);</font></b>
<br><b><font color="#000066">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
theContent=gotText.ReadAll();</font></b>&nbsp;<b><font color="#000066">alert(theContent)<font size=-2>//this
will retrieve the content and make sure it is available</font></font></b><b><font color="#000066"><font size=-2>&nbsp;&nbsp;</font><font size=+1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><font size=-2>//if you need any further asistance, e-mail...</font></font></b>&nbsp;<b>}</b>
<br>&nbsp;Regards, Bekim
<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<div style="FONT: 10pt Arial">----- Original Message -----</div>

<div style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><b>From:</b>
Steve Hearne</div>

<div style="FONT: 10pt Arial"><b>Sent:</b> Friday, June 01, 2001 2:29 PM</div>

<div style="FONT: 10pt Arial"><b>To:</b> javascript@LaTech.edu</div>

<div style="FONT: 10pt Arial"><b>Subject:</b> RE: [Javascript] Marquee
Scroller</div>
&nbsp;Thanks for that. The situation is that i'm doing work on a company
intranet based around some portal software and the page this scroller is
to be placed in unfortunately HAS to be an HTML page or the portal software
throws a wobbly!&nbsp;&nbsp; So, ASP is out of the question.&nbsp; I like
your idea of opening a file though; i suppose i could open the fille and
read its contents into a variable or array and then scroll that? Hmmmm...can
you or someone point me in the direction of some tutorials for this (opening
afile and readnig contents into var)! My ASP is better than my JavaScript
which...needs working on.
<br>Thanks again,
<br>Steve</blockquote>
</blockquote>

<p>--
<br>Shop@ssistant Add-ons and Developer Workshops
<br><A HREF="http://www.aflyingstart.net/addons/">http://www.aflyingstart.net/addons/</A>
<p>Enquiries regarding Shop@ssistant Classic training :
<br>Call 01256 880770
<p>Rodney Myers
<br>Based in Oxford, England
<br>Technical Director, Shop@ssistant eCommerce Solutions
<br>&nbsp;
</body>
</html>