AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein GUI-Design mit VCL / FireMonkey / Common Controls Delphi TWebBrowser Formular abschicken wo nur ein Image ist?
Thema durchsuchen
Ansicht
Themen-Optionen

TWebBrowser Formular abschicken wo nur ein Image ist?

Ein Thema von XenoX · begonnen am 21. Mär 2005 · letzter Beitrag vom 25. Mär 2005
Antwort Antwort
XenoX

Registriert seit: 7. Jul 2004
4 Beiträge
 
#1

TWebBrowser Formular abschicken wo nur ein Image ist?

  Alt 21. Mär 2005, 22:08
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!
  Mit Zitat antworten Zitat
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#2

Re: TWebBrowser Formular abschicken wo nur ein Image ist?

  Alt 22. Mär 2005, 05:32
Hallo!

Das sollte weiter helfen:
http://www.swissdelphicenter.ch/de/showcode.php?id=1645
Thomas
  Mit Zitat antworten Zitat
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#3

Re: TWebBrowser Formular abschicken wo nur ein Image ist?

  Alt 23. Mär 2005, 21:10
hat's so funktioniert?
Thomas
  Mit Zitat antworten Zitat
XenoX

Registriert seit: 7. Jul 2004
4 Beiträge
 
#4

Re: TWebBrowser Formular abschicken wo nur ein Image ist?

  Alt 23. Mär 2005, 22:39
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?
  Mit Zitat antworten Zitat
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#5

Re: TWebBrowser Formular abschicken wo nur ein Image ist?

  Alt 25. Mär 2005, 00:12
Hallo!

Zeige mal den Code, den du dafür geschrieben hast
Thomas
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:47 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