Ik heb de volgende code:
Nu is het probleem dat in IE de GET-request niet wil vlotten, terwijl het in FireFox wel goed gaat.
Waarom werkt die location.href hier niet in IE?
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <script type="text/javascript"> function addAfdeling(afdeling) { if (afdeling == '') { alert ('afdeling is ongeldig!'); return false; } location.href = location.href + '?action=add&afdeling=' + afdeling; } </script> </head> <body> <input type="text" name="afdeling" maxlength="50" size="20" style="width: 120px;" id="afdeling"> <a href="javascript:void(0)" onclick="addAfdeling(getElementById('afdeling').value)">afdeling toevoegen...</a> </body> </html> |
Nu is het probleem dat in IE de GET-request niet wil vlotten, terwijl het in FireFox wel goed gaat.
Waarom werkt die location.href hier niet in IE?
[ Voor 4% gewijzigd door DPLuS op 24-10-2006 09:40 . Reden: syntax highlighting ]