what cause 'secondparameterText' is undefined in Javascript?

Stalker

Member
Oct 9, 1999
193
0
0
function accountExist(frequency,acctNo)
{
if(frequency >0)
{
window.location="Talk_Insert_Existed.asp"+"?"+"Account_No="+acctNo;
}
else{
}

<body onLoad="accountExist(<%=(Recordset4_total)%>,<%=URLAcctParam%>);>



btw "URLAcctParam" is VBscript variable
 

Stalker

Member
Oct 9, 1999
193
0
0
nm
should be
<body onLoad="accountExist(<%=(Recordset4_total)%>,'<%=URLAcctParam%>)';&
t;

to indicate it is a string not variable when it is non-numerical