View Full Version : Error:"Object doesn't support this property or method"
sandie
09-25-2002, 03:23 PM
I am trying to splt a string out using the "myString.split(" ")" method. I got thta error(Object doesn't support this property or method error. I do not know what else to do now? Even the ".slice(start,end)" is giving me the sam error.
HEEEEEELPP!!!!!
what does the string look like? maybe there is something wrong with it. that split code should work.
sandie
09-26-2002, 09:02 AM
Here's the code.
<script laguage="Javascript">
<!--
var messageids = new Array(20);
var passed = Request.QueryString("selected");
messageids = passed.split(",");
var len = messageids.length;
// -->
</script>
The line in BOLD(3rd one) is the one where I wanna use the "split" method. I have tried the other way of NOT creating an array(1st line), it didn't work. In the example I read from this website, nothing about the creation and initilalization of the array was said.
glenngv
09-26-2002, 10:16 AM
you mixed asp tags with javascript without the asp delimeters
<script laguage="Javascript">
<!--
var passed = "<%=Request.QueryString("selected")%>";
var messageids = passed.split(",");
var len = messageids.length;
// -->
</script>
sandie
09-26-2002, 11:07 AM
Thank you, Glenn. It worked, beautifully!!!
Thank a million times.
Sandie
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.