Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40507
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2021-11-01 02:23 -0700 |
| Message-ID | <496b70db-3aaf-41ad-9044-e703be59a92dn@googlegroups.com> (permalink) |
| Subject | Option list selection |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
I am pretty sure this code did run a week ago, have their been changes to the API it seem it never enter loop because e.options.length undefined?
function getPortIndex(){
var e = parent.document.getElementById("out_portsel");
alert(parent.out_portsel.length);
for (var i=0;i<parent.out_portsel.length;i++){
alert("WTF");
if (e.options[i].value=="FW1884 Control"){ctrlportindex=i; alert(ctrlportindex); break;}
else{alert("nonevalid port");}
}
}
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Option list selection Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-11-01 02:23 -0700
Re: Option list selection Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-11-01 02:28 -0700
Re: Option list selection luserdroog <luser.droog@gmail.com> - 2021-11-01 09:17 -0700
Re: Option list selection Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-11-01 15:05 -0700
Re: Option list selection Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-11-01 15:10 -0700
Re: Option list selection luserdroog <luser.droog@gmail.com> - 2021-11-01 19:24 -0700
Re: Option list selection Julio Di Egidio <julio@diegidio.name> - 2021-11-01 23:54 -0700
Re: Option list selection luserdroog <luser.droog@gmail.com> - 2021-11-02 05:21 -0700
Re: Option list selection Jon Ribbens <jon+usenet@unequivocal.eu> - 2021-11-02 12:41 +0000
Re: Option list selection luserdroog <luser.droog@gmail.com> - 2021-11-03 16:15 -0700
csiph-web