z_mirza
06-06-2003, 07:26 PM
ok heres another problem im having, i have a table of tag names, in the next row is a small one line desc of the tag, well i need to put the tag names in to an array, and sort them using the sort Dave Clark gave me, (see Sorting arrays) and still have the desc go to the right tag name, let me start you guys off
arrParts = arrData[idx].split("|");
// splited some data into 3 different parts the parts are below
v1 = arrParts[0];
v2 = arrParts[1];
v3 = arrParts[2];
aLink = document.createElement("a");
aLink.innerText = v1;
aLink.href = v2;
aLink.id = "Element";
aLink.className = "element";
description = v3;
return aLink;
v1 is the tag name, v2 is a link to another page, v3 is the desc
the number of arrParts[0] is determeined by how many tagnames there are in the table, i have it set up dynaicmly, so how would i sort all of the v1's that come out of this function (by the way arrParts[0] changes X number of times, x being the number of tagnames i have in the table) and keep the right v3 with it. thanx alot if you need to see more of my code let me know or if you need further explantion as to what im saying let me know because i can see how this could get confusing. thanx again guys
arrParts = arrData[idx].split("|");
// splited some data into 3 different parts the parts are below
v1 = arrParts[0];
v2 = arrParts[1];
v3 = arrParts[2];
aLink = document.createElement("a");
aLink.innerText = v1;
aLink.href = v2;
aLink.id = "Element";
aLink.className = "element";
description = v3;
return aLink;
v1 is the tag name, v2 is a link to another page, v3 is the desc
the number of arrParts[0] is determeined by how many tagnames there are in the table, i have it set up dynaicmly, so how would i sort all of the v1's that come out of this function (by the way arrParts[0] changes X number of times, x being the number of tagnames i have in the table) and keep the right v3 with it. thanx alot if you need to see more of my code let me know or if you need further explantion as to what im saying let me know because i can see how this could get confusing. thanx again guys