- #1
B
baerenfisch
Guest
Hi Leute!
Hab da jetzt ein grosses dringendes Problem, von dem ich überhaupt nicht weiss OB es überhaupt geht. Und zwar hab ich eine Routine die mir Cookiedaten ausliest, und derzeit in eine selbst erzeugte Tabelle einfüllt. Und zwar so:
<SCRIPT LANGUAGE=JavaScript>
<!--
function tag(s){ document.write(<+s+>) }
tag(TABLE BORDER=1);
tag(TR);
tag(TD); document.write(Anzahl); tag(/TD)
tag(TD); document.write(Buchtitel); tag(/TD)
tag(TD); document.write(Nummer); tag(/TD)
tag(TD); document.write(Einzelpreis); tag(/TD)
tag(TD); document.write(Gesamtpreis); tag(/TD)
tag(/TR)
anzahl=0
while (anzahl!=){
var anzahl = naechste_anzahl()
var buchtitel = naechster_buchtitel()
var nummer = naechste_nummer()
var preis = naechster_preis()
if (anzahl!=){
tag(TR)
tag(TD); document.write(anzahl); tag(/TD)
tag(TD); document.write(buchtitel); tag(/TD)
tag(TD); document.write(nummer); tag(/TD)
tag(TD); document.write(preis); tag(/TD)
tag(TD); document.write(anzahl*preis); tag(/TD)
tag(/TR)
}
}
tag(/TABLE)
//--></SCRIPT>
Nun sollte es aber in eine Vordefinierte Tabelle einfliesen, damit man die Werte noch manuell korrigieren kann. Also hier rein:
<TD WIDTH=67><P><INPUT ID=FormsEditField2 TYPE=TEXT NAME=az1 SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField3 TYPE=TEXT NAME=bt1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField4 TYPE=TEXT NAME=n1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField5 TYPE=TEXT NAME=p1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField6 TYPE=TEXT NAME=gp1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
wobei ich hier nur die erste Zeile der Tabelle poste, aber es geht weiter mit zB. az2, az3, az4, az5.... usw.
WIE kriege ich meine Werte rein?
Grüsse
Peter
Hab da jetzt ein grosses dringendes Problem, von dem ich überhaupt nicht weiss OB es überhaupt geht. Und zwar hab ich eine Routine die mir Cookiedaten ausliest, und derzeit in eine selbst erzeugte Tabelle einfüllt. Und zwar so:
<SCRIPT LANGUAGE=JavaScript>
<!--
function tag(s){ document.write(<+s+>) }
tag(TABLE BORDER=1);
tag(TR);
tag(TD); document.write(Anzahl); tag(/TD)
tag(TD); document.write(Buchtitel); tag(/TD)
tag(TD); document.write(Nummer); tag(/TD)
tag(TD); document.write(Einzelpreis); tag(/TD)
tag(TD); document.write(Gesamtpreis); tag(/TD)
tag(/TR)
anzahl=0
while (anzahl!=){
var anzahl = naechste_anzahl()
var buchtitel = naechster_buchtitel()
var nummer = naechste_nummer()
var preis = naechster_preis()
if (anzahl!=){
tag(TR)
tag(TD); document.write(anzahl); tag(/TD)
tag(TD); document.write(buchtitel); tag(/TD)
tag(TD); document.write(nummer); tag(/TD)
tag(TD); document.write(preis); tag(/TD)
tag(TD); document.write(anzahl*preis); tag(/TD)
tag(/TR)
}
}
tag(/TABLE)
//--></SCRIPT>
Nun sollte es aber in eine Vordefinierte Tabelle einfliesen, damit man die Werte noch manuell korrigieren kann. Also hier rein:
<TD WIDTH=67><P><INPUT ID=FormsEditField2 TYPE=TEXT NAME=az1 SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField3 TYPE=TEXT NAME=bt1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField4 TYPE=TEXT NAME=n1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField5 TYPE=TEXT NAME=p1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
<TD WIDTH=67><P><INPUT ID=FormsEditField6 TYPE=TEXT NAME=gp1 VALUE= SIZE=3 MAXLENGTH=10> </TD>
wobei ich hier nur die erste Zeile der Tabelle poste, aber es geht weiter mit zB. az2, az3, az4, az5.... usw.
WIE kriege ich meine Werte rein?
Grüsse
Peter