ErrorLINE1CHAR1
Programmer
Code:
function doMONI_Edit(){
/*IF UPDATES TO THE ACS MONITORING STATUS NEED TO BE MADE, CREATE THE EDIT SCREEN*/
var sHTML;
var lidx;
sHTML = "<table border='1' width='95%' cellpadding='0' cellspacing='0' style='border-collapse: collapse'>";
sHTML = sHTML + "<tr><td>";
sHTML = sHTML + "<table border='0' width='100%' cellpadding='0'>";
sHTML = sHTML + "<tr>";
sHTML = sHTML + "<td width='100%'><font face='Neo Sans Intel Medium' size='" + cstr(htaFontSize + 2) + "'><b>ACS MONITORING - 503 . 641 . XXXX - </font><font face='Neo Sans Intel Medium' size='" + cstr(htaFontSize - 1) + "'><b>How long will be in test for? Which part of the Building? Operator Number?</b></font></td>";
sHTML = sHTML + "<td align='right'><button class='clsButton' name='btnMONIsave' value='mon' onmouseover=" + chr(34) + "btnMONIsave.style.backgroundcolor='" + btnColorOver + "'" + chr(34) + " onmouseout=" + chr(34) + "btnMONIsave.style.backgroundcolor='" + btnColorBackground + "'" + chr(34) + " onclick='doMONI_Save()'><b><font color='#000000' size='" + CStr(fSize(-1)) + "'>SAVE</font></b></button></td>";
sHTML = sHTML + "</tr>";
sHTML = sHTML + "</table>";
sHTML = sHTML + "</td></tr>"
/* HERES THE CHUNK IM HAVING AN ISSUE WITH...*/
lidx = 0;
for (lidx = 1; to; idxACSAcct)
if(staACSAcct(1,lidx) > ""){
/*------------------------------------------*/
sHTML = sHTML + "<tr>";
sHTML = sHTML + "<td style='border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px'>";
sHTML = sHTML + "<table border='0' width='100%' cellpadding='6' bgcolor='#CCCCCC bordercolor='CCCCCC' style='border-collapse: collapse'>";
sHTML = sHTML + "<tr>";
sHTML = sHTML + "<td width='30%' bgcolor='#CCCCCC' align='right'><font face='Neo Sans Intel' size='" + cstr(htaFontSize + 1) + "'>" + staACSAcct(1,lidx) + ":";
sHTML = sHTML + "<br/>Account: " + staACSAcct(2,lidx);
sHTML = sHTML + "<br/>Password: " + staACSAcct(3,lidx);
sHTML = sHTML + "</font></td>";
sHTML = sHTML + "<td bgcolor='#CCCCCC'><font face='Neo Sans Intel' size='" + cstr(htaFontSize + 2) + "' color='#FF3300'><textarea id='moni" + staACSAcct(1,lidx) + "' name='moni" + staACSAcct(1,lidx) + "' rows=1 cols=70>" + staACSAcct(4,lidx) + "</textarea></font></td>";
sHTML = sHTML + "</tr>";
sHTML = sHTML + "</table>";
sHTML = sHTML + "</td>";
sHTML = sHTML + "</tr>"
}
next
sHTML = sHTML + "</table>";
Content.InnerHTML = sHTML;
}
Or here its extracted from above, i get the error expected ; and char 20 which is right after to.. I'm new to JavaScripting kinda but they hired me to convert there ancient VBScript to JavaScript
your not going ot be able to run this in your browser or anything for the simple fact of all hte crazy VBS fuctions that are not included here like Fsize, oh which brings me to, this is in a .HTA not HTML they would like it to be HTML as well but all get them there later after its .HTA..
Code:
for (lidx = 1; to idxACSAcct)
Code:
for (variable=startvalue;variable<=endvalue;variable=variable+increment)
and the expression
Code:
for (lidx=1 in idxACSAcct)
all help would be appriciated!!
Devon
Intel Corp. (HF)