Einzelnen Beitrag anzeigen
Alt 04.10.2004, 22:00   #2
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

Wieso machst du's nicht mit POST???
<script language="JavaScript">
function check(was){
//Code
return was;
}
</script>
<form method="POST" action="file.php">
<input type="text" name="textfeld">
<input type="button" value="abschicken" onClick="this.textfeld.value=check(this.textfeld.v alue);this.submit()">
</form>
oder:
onClick="check();"
und
function check(){
var was = document.forms[0].textfeld;
was.value=was.value + "was dranhängen";
document.forms[0].submit();
}

Bin mir nicht ganz sicher, ob's stimmt. Du solltest prüfen ob man mit this.textfeld auf's Textfeld zugreifen kann, oder man's mit document.forms[0].textfeld machen muss.
Könnte auch sein daß es nicht .value sondern .text ist.
Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
jak ist offline   Mit Zitat antworten