cybton.com
Über uns | Jobs | Werbung | Sitemap | AGB | Impressum | Hilfe ?
 Kostenlos anmelden)
Forum
Aktuellste Beiträge
Forenregeln

Community
BB-Codes
Tags
Chat
Suche (Web)
Wer ist online?
Top-User

Basar


Statistik
Mitglieder gesamt: 68142
Mitglieder online: 1
Gäste online: 1
mehr...

Anzeige
Forum » Forum: Website & Webprogrammierung » Thread: [Gelöst] JS Formularelemente je nach Eingabe anzeigen/verstecken, Probleme im IE

Thread: [Gelöst] JS Formularelemente je nach Eingabe anzeigen/verstecken, Probleme im IE

Tags: Formular , ie , Anzeigen

29.02.2008 17:12 Uhr

 

Status: offline
ich habe ein formular in dem man angeben kann ob man eine kundenummer besitzt, wenn man ja angibt soll ein feld für die kundenumemr erscheinen, wenn man nein angibt sollen felder für persönliche daten erscheinen. das ganze habe ich mit einem java script gelöst, das anfangs nur im IE nicht aber im FF funzte, und nun nach dem ich die anzeigeart von block auf table-row geändert habe geht es nurnoch im FF selbst wenn ich auf block zurücksetze  :question:  woran kann das liegen?
link (nur wenn mein pc online ist) : http://www.kevinq.dtdns.net/ZIEL/index.php?site=seminaranmeldung
+ PHP:
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
 
<form method="POST" action="" target="_self">
<script type="text/javascript">
function trigger(a) {
if(a == 'ja') {
document.getElementById('nummer').style.display = 'table-row';
document.getElementById('pera').style.display = 'none';
document.getElementById('perb').style.display = 'none';
document.getElementById('perc').style.display = 'none';
document.getElementById('perd').style.display = 'none';
document.getElementById('pere').style.display = 'none';
document.getElementById('perf').style.display = 'none';
document.getElementById('perg').style.display = 'none';
document.getElementById('perh').style.display = 'none';
document.getElementById('peri').style.display = 'none';
document.getElementById('perj').style.display = 'none';
} else if(a == 'nein') {
document.getElementById('nummer').style.display = 'none';
document.getElementById('pera').style.display = 'table-row';
document.getElementById('perb').style.display = 'table-row';
document.getElementById('perc').style.display = 'table-row';
document.getElementById('perd').style.display = 'table-row';
document.getElementById('pere').style.display = 'table-row';
document.getElementById('perf').style.display = 'table-row';
document.getElementById('perg').style.display = 'table-row';
document.getElementById('perh').style.display = 'table-row';
document.getElementById('peri').style.display = 'table-row';
document.getElementById('perj').style.display = 'table-row';
}
}
</script>
<table class="tablebg" cellspacing="1" width="100%">
 <tr>
  <th class="sitecontent" colspan="3">Anmeldung</th>
 </tr>
 <tr>
  <td class="row1">Buchungs-Nr.:</td>
  <td class="row2"><input type="text" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Rechnungs-Nr.:</td>
  <td class="row2"><input type="text" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Titel:</td>
  <td class="row2"><input type="text" class="readonly" readonly="readonly" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Termin:</td>
  <td class="row2"><input type="text" class="readonly" readonly="readonly" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Ort:</td>
  <td class="row2"><input type="text" class="readonly" readonly="readonly" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Preis:</td>
  <td class="row2"><input type="text" class="readonly" readonly="readonly" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Anzahl der Teilnehmer:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
  <tr>
  <th class="sitecontent" colspan="3">Persönliche Angaben</th>
 </tr>
 
 <tr>
  <td class="row1">Kunden-Nr. bereits vorhanden</td>
  <td class="row2">Ja<input type="radio" name="kundennummervorhanden" value="ja" onClick="javascript:trigger('ja');" /> Nein<input type="radio" name="kundennummervorhanden" value="nein" onClick="javascript:trigger('nein');" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="nummer" style="display: none;">
  <td class="row1">Kunden-Nr.:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="pera" style="display: none;">
  <td class="row1">Firma:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="perb" style="display: none;">
  <td class="row1">Anrede:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="perc" style="display: none;">
  <td class="row1">Vorname:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="perd" style="display: none;">
  <td class="row1">Name:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="pere" style="display: none;">
  <td class="row1">Straße:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr Id="perf" style="display: none;">
  <td class="row1">PLZ:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr ID="perg" style="display: none;">
  <td class="row1">Wohnort:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr ID="perh" style="display: none;">
  <td class="row1">E-Mail:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr ID="peri" style="display: none;">
  <td class="row1">Tel.-Nr.:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr ID="perj" style="display: none;">
  <td class="row1">Fax:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <th class="sitecontent" colspan="3">Bankverbindung</th>
 </tr>
 <tr>
  <td class="row1">Zahlungsart:</td>
  <td class="row2"><select name="zahlungsart"><option value="">Bitte Wählen</option><option value="">------</option><option value="bankeinzug">Bankeinzug</option><option value="ueberweisung">Überweisung</option><option value="bar">Barzahlung</option></select></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Bank:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">Konto-Nr:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <td class="row1">BLZ:</td>
  <td class="row2"><input type="text" size="35" /></td>
  <td class="row3"><img src="images/frage.gif" width="14" height="14" alt="?" onmouseover="return escape('Hilfetext')"></td>
 </tr>
 <tr>
  <th class="sitecontent" colspan="3"><input type="submit" value="Weiter" /><input type="reset" /></th>
 </tr>
</table>
</form>
2 mal bearbeitet
29.02.2008 19:18 Uhr

 

Status: offline
Zitat:
...selbst wenn ich auf block zurücksetze  :question:  woran kann das liegen?

Cache?
___________________________
Programmieren ist eine Sucht deren Rausch ein Gefühl der Macht ist... sofern man den Computer bezwingt. Gefährliche Nebenwirkungen: Verstärkter Kaffee-Konsum, erhöhter Ehrgeiz und ggf. Wutausbrüche und verknotete Gehirnwindungen.
29.02.2008 19:48 Uhr

 

Status: offline
schon paarMal geleert, auch unter localhost Adresse aufgerufen, und in der devtoolbar sogar zwischenzeitlich ganz deaktivirt. außerdem ist es direkt in Quellcode, und auch nach dem Seitenaufruf zu sehen.
05.03.2008 18:59 Uhr

 

Status: offline
hat niemand eine Idee? oder muss ich eine Belohnung für die Losung des Problems ausstellen?
05.03.2008 19:10 Uhr

 

bmk
Moderator
Status: offline
Setz das display nicht auf 'table-row' sondern auf '', also einen Leerstring. Dann gehts in beiden.
___________________________
Let's code responsibly...
Webcrawler -- Portal für Dirigenten -- Musikverein Königstetten
06.03.2008 13:24 Uhr

 

Status: offline
thx, funzt einwandfrei.
Ähnliche Threads Forum Ähnlichkeitsgrad
 Formular in Mail und als PDF-Anhang Website & Webprogrammierung 1
 %username% aktuelles Nutzerkonto über IE Website & Webprogrammierung 1
 [gelöst] Dynamisches Formular aber wie? Website & Webprogrammierung 1
 Formular Spiel (mit Javascript) Website & Webprogrammierung 1
 PHP Dateiupload nicht nach "submit" Klick starten ??! - sondern auf neuer Seite Website & Webprogrammierung 1
 Ajax HTTP-Request geht nicht im IE 7 Website & Webprogrammierung 1
 [gelöst] Verschiedene Anzeigen in IE und Firefox? Website & Webprogrammierung 1
nach obennach oben

Copyright © 2008 cybton-network

Google
Partner: #Musik - Dein Internetradio - nexem. - .wir machen news - Your-Book.net - Dein kostenloses Gästebuch
ANEXIA - PHP Entwicklung - Dockers - s.Oliver Schuhe - Think Schuhe - der eigene Weg - Dorfen - Paul Green Schuhe - Bequeme Geox - Web-Entwicklung