hey guys
I have done this so many times before, but it doesnt seem to be working this
time
===========================================
function displaySort(type,date,dateArray)
{
switch (type)
{
case "day":
{
if (typeof eval("activityCount_" + dateArray + ".length") ==
"undefined")
{activityNumber = 0;}
else
{activityNumber = eval("activityCount_" + dateArray +
".length");}
val = "sort by day," + date + "\n\nIt has " + activityNumber
+ "
activies scheduled"; break;}
case "week":
{val = "sort by week using " + date; break;}
case "month":
{val = "sort by " + date; break;}
}
document.all.sort.value = val;
}
=================================================
I am dynamicly creating these javascript array and populating them with
elemnts
if the array exists, the code works, but if it does, then it dies.
"if (typeof eval("activityCount_" + dateArray + ".length") == "undefined")"
if it doesnt exist, the the above line should return "undefined", but it
just errors
any ideas?
Regards
Steve Onnis
Domain Concept Designs
+61 422 337 685
+61 3 9444 7504
http://www.domainconceptdesigns.com <http://www.domainconceptdesigns.com>
("If you think it can't be done, you haven't asked me!") - Steve Onnis
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/