There seems to be some sort of conflict with prototype and the for
"in" operator.

var f = new Array('value1','value2','value3');
for(g in f)
{
 alert(g);
}

Fine?
Well, with prototype loaded, both IE + FF get an extra alert...

IE gets it before the values in the array:
http://s44.photobucket.com/albums/f42/raldred/?action=view&current=forin-ie.gif

FF gets it after the other values in the array:
http://s44.photobucket.com/albums/f42/raldred/?action=view&current=forin-ff.gif


Does anyone have any solution to this?
Or do i just have to annoying method of
for(var i=0;i<f.length;i++)
{
   alert(f[i]);
}

Thanks
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to