ERROR

No script block defined yet
Can not retrieve script object

I'm getting it when trying to implement this code:

/////////////////
IIDnum = ListNum;
IIDname = ListName;
CompName     = "~i" + IIDnum + "-" + StrLeft( IIDname, 16 );
TickerChanged = IIf(Name() != CompName,1,0);
if(TickerChanged)
{
script = GetScriptObject();
script.SetChartTicker(CompName); // ERROR ???
}
EnableScript("JScript");
<%
function SetChartTicker(newTicker)
{
AB = new ActiveXObject("Broker.Application");
AB.ActiveDocument.Name = newTicker;
return 1;
}
/////////////////

Reply via email to