Name: Anonymous 2006-06-23 3:18
No, really! I tried to program a bit with it, but it does really strange things and I don't think that this is my fault!
menu = new Array();
function menuobject (one, two)
{
this.id = one;
this.stuff = two;
}
menu_db = "1|foo;2|bar;"
for (i=0; i < menu_db.length; i++)
{
temp = menu_db.split(";");
menu[i] = new menuobject(temp[0], temp[1]);
}
menu = new Array();
function menuobject (one, two)
{
this.id = one;
this.stuff = two;
}
menu_db = "1|foo;2|bar;"
for (i=0; i < menu_db.length; i++)
{
temp = menu_db.split(";");
menu[i] = new menuobject(temp[0], temp[1]);
}