Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TWebBrowser Formular abschicken wo nur ein Image ist? (https://www.delphipraxis.net/42633-twebbrowser-formular-abschicken-wo-nur-ein-image-ist.html)

XenoX 21. Mär 2005 22:08


TWebBrowser Formular abschicken wo nur ein Image ist?
 
Hallo Leute,

ich habe ein Problem, ich möchte gerne ein Formular mit TWebBrowser verschicken, es gibt aber keinen direkten Submit Button sondern habe nur folgende Information:

Delphi-Quellcode:

<input type="image" src="https://www.vodafone.de/images/btn_ok.gif" border="0" tabindex="3"></td>
Wie könnte ich das realisieren?

Wäre für jede Hilfe dankbar!

toms 22. Mär 2005 05:32

Re: TWebBrowser Formular abschicken wo nur ein Image ist?
 
Hallo!

Das sollte weiter helfen:
http://www.swissdelphicenter.ch/de/showcode.php?id=1645

toms 23. Mär 2005 21:10

Re: TWebBrowser Formular abschicken wo nur ein Image ist?
 
hat's so funktioniert?

XenoX 23. Mär 2005 22:39

Re: TWebBrowser Formular abschicken wo nur ein Image ist?
 
Leider Nein,

es scheint kein normaler Image Button zu sein aber hier mal der Source:
Delphi-Quellcode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Versionsdaten
  $Date$
  $Revision$
-->


   
   



















<HTML>
  <HEAD>
   

   
<LINK REL=STYLESHEET HREF="https://www.vodafone.de/styles/popup.css" TYPE="text/css">

<META HTTP-EQUIV="expires" CONTENT="-1">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">


<script language="javascript" type="text/javascript">
   <!-- begin script
   function closeWindow()
   {
      // if there is a frame ...
       if (top.frame1) top.close(); else window.close();
   }
   var newwindow='';
  function openHelpWindow(url)
  {
      windowprops = "height=300,width=290,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes, statusbar=no, screenX=500, screenY=100";

      if (newwindow.location && !newwindow.closed)
        {
           newwindow.location.href = url;
       }
       else
       {
          newwindow=window.open(url,'name',windowprops);
          if (!newwindow.opener) newwindow.opener = self;
       }
       if (window.focus) {newwindow.focus()}

  }

   // end script -->
   </script>

    <TITLE>Vodafone Login</TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
      function onLoadDocument()
      {
        if (document.loginForm.name.value == "")
          document.loginForm.name.focus();
        else
          document.loginForm.password.focus();
      }

      function checkForm()
      {
        nameField = document.loginForm.name;
        if (nameField.value.length < 1)
        {
          alert("Bitte geben Sie Ihre Handy-Nummer oder Vodafone-Kundennummer ein!");
          nameField.focus();
          return false;
        }

        passwordField = document.loginForm.password;
        if (passwordField.value.length < 1)
        {
          alert("Bitte geben Sie Ihr Kennwort ein!");
          passwordField.focus();
          return false;
        }
        return true;
      }
    //-->
    </SCRIPT>
  </HEAD>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" rightmargin="0"
      bottommargin="0" marginwidth="0" marginheight="0"
      ONLOAD="onLoadDocument();">
   
   
<table cellspacing="0" cellpadding="0" border="0" height="100%">
  <tr>
    <td width="123" align="left" valign="top" bgcolor="#F5F5F5">
      <table border="0" cellspacing="0" cellpadding="0">
   <tr>
     <td>[img]https://www.vodafone.de/images/popup_logo.gif[/img]</td>
     <td>[img]https://www.vodafone.de/images/pixel.gif[/img]</td>
   </tr>
   <tr><td colspan="2">[img]https://www.vodafone.de/images/pixel.gif[/img]</td></tr>
      </table>

   
   </td>
   <td width="20" align="left" valign="top">
   [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
   <td align="left" valign="top" width="100%">

   
       
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="right" valign="top"><a href="javascript:window.print()">
             [img]https://www.vodafone.de/images/popup_pp.gif[/img]</a>
          </td>
        </tr>
      </table>

      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="15">[img]https://www.vodafone.de/images/pixel.gif[/img]</td>
        </tr>
      </table>    

   <table border="0" cellspacing="0" cellpadding="0" width="100%">
   <tr>
      <td align="left" valign="top">


    <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><span class="heading2red">Login</span></td></tr>
<tr><td background="https://www.vodafone.de/images/bg_dot_red.gif">[img]https://www.vodafone.de/images/pixel.gif[/img]</td></tr>
</table>

   






        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <form name="loginForm" method="POST" action="/jsp/portal/login/login.do;jsessionid=CBv3qP54QyTXsrnGC8syCgsgJVz13kZ8CW01vDQszzNfT29bDy5P!-619181365!-1696694905" onsubmit="return checkForm();">

            <input type="hidden" name="id" value="null">
            <input type="hidden" name="semanName" value="null">
            <input type="hidden" name="semanId" value="null">

            <tr>
              <td colspan="2" height="15">
              [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
            </tr>
            <tr>
              <td colspan="2">
              Melden Sie sich an und nutzen Sie die Online-Services von Vodafone!</td>
            </tr>
            <tr>
              <td colspan="2" height="15">
              [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
            </tr>
            <tr>
              <td colspan="2">
                Ihre Handy-Nummer inkl. Vodafone-Vorwahl


                ODER Ihre Kundennummer:


                <input type="text" name="name" maxlength="15" size="15" tabindex="1" value="" class="inputBlack">


                Ihr Internet-Kennwort:
               


                <input type="password" name="password" maxlength="20" size="15" tabindex="2" value="" class="inputBlack">
               


               
<input type="image" src="https://www.vodafone.de/images/btn_ok.gif"
                           border="0" tabindex="3"></td>
            </tr>
            <tr>
                <td height="15">
                [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
               </tr>
          </form>
        </table>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><SPAN CLASS="heading1">Sie haben noch kein Internet-Kennwort?</SPAN>


            Hier geht es zur [url="/jsp/portal/login/loginFirstLogin.do"]Erstanmeldung[/url]!



            <SPAN CLASS="heading1">Internet-Kennwort vergessen?</SPAN>


            Hier bekommen Sie ein <A HREF="/jsp/portal/login/loginReminder.do">
            neues Internet-Kennwort</a> per SMS oder Post.

</td>
          </tr>

          <tr>
            <td background="https://www.vodafone.de/images/bg_dot_red.gif">
            [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
          </tr>
          <tr>
            <td>
             
Bitte beachten Sie die zur Nutzung von MeinVodafone notwendigen
              <A HREF="javascript:openHelpWindow('https://www.vodafone.de/online_help/systemvoraussetzung.html')">
              Browsereinstellungen</A>.
            </td>
          </tr>

          <tr>
            <td height="15">
            [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
          </tr>
          <tr>
            <td>Hilfe zur Bedienung finden Sie in Ihrer
              [url="javascript:openHelpWindow('https://www.vodafone.de/online_help/egn00001.html#top')"]Online-Hilfe[/url].</td>
          </tr>
        </table>
      </td>
      <td width="20">
        [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
    </tr>
    </table>

        </td>
  </tr>
  <tr>
    <td align="center" valign="bottom" bgcolor="#F5F5F5">
     
      [url="javascript:closeWindow();"][img]https://www.vodafone.de/images/close_window.gif[/img][/url]


      [img]https://www.vodafone.de/images/pixel.gif[/img]
     
    </td>
    <td width="20" align="left" valign="top">
      [img]https://www.vodafone.de/images/pixel.gif[/img]</td>
    <td align="left" valign="top">
      [img]https://www.vodafone.de/images/pixel.gif[/img]    
    </td>
  </tr>
</table>

</body>
</html>
Vielleicht gibt es ja noch eine andere Möglichkeit?

toms 25. Mär 2005 00:12

Re: TWebBrowser Formular abschicken wo nur ein Image ist?
 
Hallo!

Zeige mal den Code, den du dafür geschrieben hast


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz