Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Netscape javascript objects bug???


Message #1 by "Filipp Eritsian" <e_demiurg@h...> on Tue, 13 Mar 2001 12:26:46 +1100
I've encountered a very strange problem with Netscape today. It appears as 
if there is a (bug?)... Apparently, if I have two variables pointing at the 
same object (in my case it was an array of options opt[] and 
document.frmObj.selectObj.options[]), then if I set 
document.frmObj.selectObj.options[i] to null, something really screwy 
happens to the corresponding opt[i], it is automatically set to 
document.frmObj.selectObj.options[1] (not 0, but 1)... It is almost as if 
references to these objects are not pointers, but rather ... i don't even 
know what it is... I did solve it eventually by creating a new instance of 
an object every time I need to create an extra reference(pointer) to that 
object, but that's not the most beautiful solution :(

Has anyone encountered that kind of problem before?
Is there another way out???

Cheers


  Return to Index