Where a calculator on the ENIAC is equipped with 18,000 vacuum tubes and weighs 30 tons, computers in the future may have only 1,000 vacuum tubes and weigh only 1.5 tons.
– Popular Mechanics, March 1949
Intentionally left blank
Maar kom er net achter dat in IE het element helemaal niet wordt toegevoegd. Dan is er dus ook niets te selecteren.
Volgens mij (maar zoveel weet ik niet van JS), bestaat het pad top.opener.document.formpje.plaats_id; niet, in IE. Wel in FF, daar werkt het prima.
Doe dit dus vanuit een popup window...
Iemand nog goede hints?
Where a calculator on the ENIAC is equipped with 18,000 vacuum tubes and weighs 30 tons, computers in the future may have only 1,000 vacuum tubes and weigh only 1.5 tons.
– Popular Mechanics, March 1949
1
2
3
4
5
6
7
8
9
10
| <script type="text/javascript"> function addOption() { var opt = new Option('Stadnaam', '12345'); var sel = opener.document.forms['formpje'].elements['plaats_id']; var index = sel.options.length; sel.options[index] = opt; sel.selectedIndex = index; } </script> |
Intentionally left blank
Dat is:
1
| sel.options[index] = opt; |
En er wordt niets toegevoegd, laat staan geselecteerd.
Nog andere tips, ook hoe ik eventueel beter kan debuggen?
Edit: Dit geeft iig een undefined:
alert(opener.document.forms['formpje'].elements['plaats_id'].selectedindex);
Terwijl ik op z'n minst een getal oid zou verwachten...
[ Voor 27% gewijzigd door PanMan op 06-03-2005 17:51 . Reden: alert toegevoegd. ]
Where a calculator on the ENIAC is equipped with 18,000 vacuum tubes and weighs 30 tons, computers in the future may have only 1,000 vacuum tubes and weigh only 1.5 tons.
– Popular Mechanics, March 1949
Intentionally left blank
voorbeeld
Intentionally left blank
Het werkt eindelijk, precies zoals ik wou. En zowel in IE als FF
Thnx a lot, Crisp! Als ik jou, en je bugkennis niet had..
Where a calculator on the ENIAC is equipped with 18,000 vacuum tubes and weighs 30 tons, computers in the future may have only 1,000 vacuum tubes and weigh only 1.5 tons.
– Popular Mechanics, March 1949