I downloaded the ticker software. Works great and all. But wanting it to ‘refresh/reload’, the form, so to reload the view, to get the updated information.
I tried putting in the reload command all through the javascript. I might have used the wrong javascript commands, etc. Can you please give me a hand and show me where and how I should put the refresh for this news ticker?
I tried
document.reload(True) ;
window.reload(True);
Any help would be appreciated on how I could get this window to refresh after getting to the last document.
I am pasting the original code below:
var max=0;
function textlist()
{
this.max=textlist.arguments.length;
for (i=0; i<this.max; i++)
this[i]=textlist.arguments[i];
}
var x = 0;
pos = 0;
function textticker()
{
l = tl.length;
document.forms[0].tickfield.value = tl.substring(0, pos) + “_”;
// document.all.tickspan.innerText = tl.substring(0, pos) + “_”;
if(pos++ == l)
{
pos = 0;
if(++x == tl.max)
{
x = 0;
setTimeout("textticker()", 3500);
//I tried here, but might have had code wrong.
}
else
setTimeout("textticker()", 1750);
l = tl[x].length;
}
else
setTimeout("textticker()", 45);
}