WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 18.10.2001, 14:51   #1
RaistlinMajere
Inventar
 
Registriert seit: 06.04.2001
Alter: 44
Beiträge: 2.343


Standard NS4x-fomular in tabellenfeld mit js auslesen

mit

document.forms["xyz"].elements["textfeld"].value

geht leider nicht mit den folgenden hierachien:

<table>
<form name="xyz">
<tr><td><input type="text" size=10 name="textfeld"></td></tr>
</form>
</table>

<form name="xyz">
<table>
<tr><td><input type="text" size=10 name="textfeld"></td></tr>
</table>
</form>

<table>
<tr><td><form name="xyz">
<input type="text" size=10 name="textfeld"></form>
</td></tr>
</table>


wenn ich das tabellenfeld oder sogar die zeile in das formular inkludiere, bringts auch nix (soweit war ich in meiner verzweiflung schon), auch das ansprechen der elemente in js mit indizes anstatt namen hilft nicht, in jedem fall bringt mir die ns js-console

document.forms["xyz"] has no properties.
bzw.
document.forms[0] has no properties.

kann mir irgendjemand helfen? ich bin echt am narrischwerden.
____________________________________
"Life is like a box of rockets," said the Marine. "You never know what you´re gonna ret."
Then he pulled the trigger of his BFG9000.
RaistlinMajere ist offline   Mit Zitat antworten
Alt 18.10.2001, 15:37   #2
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

Schon mal mit "document.xyz.textfeld.value" probiert?
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
Alt 18.10.2001, 15:57   #3
RaistlinMajere
Inventar
 
Registriert seit: 06.04.2001
Alter: 44
Beiträge: 2.343


Standard

yup, bringt auch nix.
____________________________________
"Life is like a box of rockets," said the Marine. "You never know what you´re gonna ret."
Then he pulled the trigger of his BFG9000.
RaistlinMajere ist offline   Mit Zitat antworten
Alt 18.10.2001, 16:06   #4
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

Und mit "document.forms[0].elements["textfeld"].value" ?
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
Alt 18.10.2001, 16:17   #5
RaistlinMajere
Inventar
 
Registriert seit: 06.04.2001
Alter: 44
Beiträge: 2.343


Standard

das problem is ned das textfeld, bini draufgekommen, sondern das formular selbst.

hab mir nämlich mit

alert(document.forms[0]) bzw. alert(document.forms["xyz"]) bzw. alert(document.xyz)

ausgeben lassen, ob das objekt überhaupt existiert, im ie tuts das, im ns ned. dort ist der hund begraben.
____________________________________
"Life is like a box of rockets," said the Marine. "You never know what you´re gonna ret."
Then he pulled the trigger of his BFG9000.
RaistlinMajere ist offline   Mit Zitat antworten
Alt 18.10.2001, 16:25   #6
_m3
Inventar
 
Registriert seit: 24.09.2001
Beiträge: 7.335


Standard

Dann hast Du das Form wahrscheinlich in einem div bzw. layer?

Probier mal
"document.layers[0].document.forms["xyz"]"
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org .
_m3 ist offline   Mit Zitat antworten
Alt 19.10.2001, 14:09   #7
RaistlinMajere
Inventar
 
Registriert seit: 06.04.2001
Alter: 44
Beiträge: 2.343


Standard

bin selbst grad draufgekommen, daß es genau so war, war in einem <div>-layer drin. danke trotzdem.
____________________________________
"Life is like a box of rockets," said the Marine. "You never know what you´re gonna ret."
Then he pulled the trigger of his BFG9000.
RaistlinMajere ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 00:11 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag