[thelist] Help Finding & Fixing VBScript Error... Continued

Barry Sweeney thelist at sweeneys.net
Thu Mar 10 13:33:09 CST 2005


Administrative HQ wrote:
<snip>
> function snd_onclick() {
> ^
> ********************
> The code (in context) is:
> ********************
> 159 function window_onload()
> 160
>
document.getElementById("UsrId").value=document.getElementById("cust").value
> 161
> 162 //alert(document.getElementById("UsrId").value);
> 163 }
> 164
> 165 function snd_onclick() {
> 166 document.getElementById("snd").disabled=true;
> 167 var dosub=true;
> 168
> 169 if (document.getElementById...Etc., Etc.
> ********************
> Can anybody see why this would return an error here (especially when
> it works in the same context on another page)? 

Could it be that line 163 has } and there is no corresponding { before it,
ie on line 159 ? So line 159 should be:
Function window_onload() {




More information about the thelist mailing list