is there a better way to determine an objects position in an array other than the below code?
 
 for (var i=0;i < tempNode.parentNode.nodes.length;i++){
  if (tempNode.parentNode.nodes[i]===tempNode){
   index=i;
   i=tempNode.parentNode.nodes.length;
  };
 };
 

---
Outgoing mail is certified Virus Free by AVG Free Edition
Download at: http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/01

Reply via email to