The following code works fine when I assign a string (for example: "7,8,9,test"
to the javascript defined variable "mystrg":
<%
var mystrg;
var mylist2;
var mystrgl;
mystrg = Request.Form("list2"
;
Response.Write(" mystrg is " + mystrg );
mylist2 = mystrg.split( "," );
Response.Write("<br>" + mylist2[0]);
Response.Write("<br>" + mylist2[1]);
Response.Write("<br>" + mylist2[2]);
Response.Write("<br>" + mylist2[3] + "<br>"
;
for (var count = 0; count < mylist2.length; count++)
{ %>
<%
Response.Write(mylist2[count] + "<br>"
}
%>
But when I assign "Request.Form("list2"
" to the variable mystrg (which works okay), I get the following error on the split function:
"Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method"
Help!!!!!
<%
var mystrg;
var mylist2;
var mystrgl;
mystrg = Request.Form("list2"
Response.Write(" mystrg is " + mystrg );
mylist2 = mystrg.split( "," );
Response.Write("<br>" + mylist2[0]);
Response.Write("<br>" + mylist2[1]);
Response.Write("<br>" + mylist2[2]);
Response.Write("<br>" + mylist2[3] + "<br>"
for (var count = 0; count < mylist2.length; count++)
{ %>
<%
Response.Write(mylist2[count] + "<br>"
}
%>
But when I assign "Request.Form("list2"
"Microsoft JScript runtime error '800a01b6'
Object doesn't support this property or method"
Help!!!!!