From: Doug M. <do...@cr...> - 2001-03-12 21:57:58
|
is there a better way to determine an objects position in an array other = than the below code? for (var i=3D0;i < tempNode.parentNode.nodes.length;i++){ if (tempNode.parentNode.nodes[i]=3D=3D=3DtempNode){ index=3Di; i=3DtempNode.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 |