Autor Beitrag
JustusJonas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Do 29.07.04 07:13 
Hallo Leute,

ich möchte gerne ein WebFormular bestätigen. Leider ist der Submit-Button ein Bild, womit mein bisheriger Code nicht mehr funktioniert:

ausblenden Delphi-Quelltext
1:
WebBrowser1.OleObject.Document.Forms.item(0).elements.submit;					


Den Quellcode hier vom Board aus der FAQ habe ich schon versucht und alle möglichen Tipps beim SDC hab ich auch schon ausprobiert.
Der Quelltext des Buttons seht so aus:

ausblenden Quelltext
1:
<input src="images/buttons/send_it.gif" name="GO" id="OK" type="image" />					


Hat jemand noch einen Tipp für mich? Bin echt schon fast am verzweifeln!

Greetz
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Do 29.07.04 09:39 
irgentwie fehlt da etwas javascript imho. Ich vermisse eine OnClick() oder so so. Mit dem jetzigen Quelltext ist keine Aktion verknüpft.

grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
JustusJonas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Do 29.07.04 10:33 
Es gibt tatsächlich noch ein wenig Java-Script weiter unten im Quellcode:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
<script language="javascript">
  function window.onload()
  {
    body1.scroll = "no";
    body1.scrollLeft = 0;
    body1.scrollTop = 0;
  }
  function yousendit.onsubmit()
  {
    body1.scroll = "no";
    body1.scrollTop = 0;
    body1.scrollLeft = 0;
    //this is the 2nd thing required to make the whole thing work
    (eval('document.all.formLayer')).style.visibility = "hidden";
    document.all.adLayer.src="transfer_sending.aspx";
    document.all.adLayer.style.visibility="visible";
    //this is the 2nd thing required to make the whole thing work
    yousendit.submit();
  }


Hilft das weiter?

Greetz
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Do 29.07.04 18:02 
so gut kenn ich mich damit nicht aus, aber auch da gibts ein yousendit.submit();
versuchs mal damit.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?