hi,
I have an asp page where I have some code to read the conents of a text file. That is in asp, using
<%
...
strFileName = Server.MapPath("/muestras/avisos/actual.txt"
Set FSysObj = Server.CreateObject("Scripting.FileSystemObject"
Set TS = FSysObj.OpenTextFile(strFileName, 1, False)
If not TS.AtEndOfStream Then
do While not TS.AtendOfStream
strLine = TS.ReadLine
loop
End If
...
%>
So that gives me a var called strLine with the contents of the txt file.
Then, under this code I have some other code, in JavaScript this time, where I create a marquee and set the contents of it, i.e. the text to display.
Basically, I have
var marqueecontents= a
where I want "a" to be strLine.
I tried
var marqueecontents= <%strLine%> ....... doesn´t work
var marqueecontents= +<%strLine%>+.......doesn´t work
var marqueecontents= +strLine+...........doesn´t work
Any ideas?
Thanks,
im
I have an asp page where I have some code to read the conents of a text file. That is in asp, using
<%
...
strFileName = Server.MapPath("/muestras/avisos/actual.txt"
Set FSysObj = Server.CreateObject("Scripting.FileSystemObject"
Set TS = FSysObj.OpenTextFile(strFileName, 1, False)
If not TS.AtEndOfStream Then
do While not TS.AtendOfStream
strLine = TS.ReadLine
loop
End If
...
%>
So that gives me a var called strLine with the contents of the txt file.
Then, under this code I have some other code, in JavaScript this time, where I create a marquee and set the contents of it, i.e. the text to display.
Basically, I have
var marqueecontents= a
where I want "a" to be strLine.
I tried
var marqueecontents= <%strLine%> ....... doesn´t work
var marqueecontents= +<%strLine%>+.......doesn´t work
var marqueecontents= +strLine+...........doesn´t work
Any ideas?
Thanks,
im