Autor Beitrag
NetZwerg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: Sa 24.04.04 12:31 
Hallo,

ich habe ma ne Frage zu HTML. Ich möchte in den <Body OnLoad=""> Tag den submit einer Form ausführen. Wie mache ich das?

cYa, Dave

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 24.04.04 12:35 
über javascript...infos gibts hier


selfhtml.teamone.de

Gruß

Alex
NetZwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: Sa 24.04.04 12:37 
Habich auc schon gesucht aber nix gefunden. wo genau denn da? thx schonma

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Sa 24.04.04 12:46 
wer suchet, der findet: :roll:
selfhtml.teamone.de/...kte/forms.htm#submit


raziel

_________________
JSXGraph
NetZwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: Sa 24.04.04 13:20 
Okay, geht über JavaScript aber nur wenn type="submit"! also wenn ich das über <Body OnLoad="AbGehts()"> mache geht das nicht!

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Sa 24.04.04 13:28 
wie wenn was type="submit"?
klar geht das nich, weil onLoad beim Laden aufgerufen wird und da das Formular (im <body>) ja noch nich geladen is...
probiers mal mit nem <script> am ende vom body:
Zitat:

<script ...>
document.NameDerForm.Submit();
</script>



raziel

_________________
JSXGraph
NetZwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: Sa 24.04.04 13:41 
hmmm... :( also wenn ich <INPUT TYPE="submit" OnClick="AbGehts()"> mache funktionierts. Aber ich wills ja in <Body onLoad bzw OnOnload> machen? Und mit script am ende von body funzts auch nich!? :cry:

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 24.04.04 15:22 
bei mir mit obigem Code von raziel schon!