.html Datei in Form anzeigen?

  • VB6

Es gibt 11 Antworten in diesem Thema. Der letzte Beitrag () ist von Lin.

    .html Datei in Form anzeigen?

    Hallo,
    ich bräuchte da mal ein wenig Hilfe!
    Undzwar würde ich ganz gerne eine .html Datei die sich im Programm-Ordner befindet in ein Form oder ähnliches Steuerelemnt laden und dort anzeigen!
    Nur damit es keine Misverständnisse gibt: Ich will die .html richtig laden! Nicht den Quelltext anzeigen!

    Also schon thx for help!

    Mfg.
    Lin
    ja habe ich nur leider funtzt das alles net:

    WebBrowser1.Navigate App.Path & "\login.htm"
    (WebBrowser ist auch auf dem Form plaziert!)

    nur die .html lädst er erst garnicht und wenn ich die Datei als .htm lade kommt immer eine Fehlermeldung:

    Es ist ein Laufzeifehler aufgetreten:
    Zeile 92
    Fehler: document.login.username ist Null oder kein Objekt

    was kann ich da machen?
    Wo ist dein Quelltext mit Zeile 92? Ist das eine VB-Fehlermeldung oder eher eine JavaScript?? Es bringt nichts, hier wild ins blaue zu raten, woran es nun liegen könnte, wenn du einfach nur irgend eine Fehlermeldung ohne alles postest.
    Gruß, Agent Smith 8-)

    activeFlags = (lazy OR weary)

    Lemgo-Verschwörung | Mathematics | VB-Paradise in blau

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Agent“ ()

    Joa hier der Komplette Site-Quelltext:

    HTML-Quellcode

    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2. <html><head><title>paracom GmbH > Anmeldung</title>
    3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    4. <meta http-equiv="pragma" content="no-cache">
    5. <meta http-equiv="expires" content="-1">
    6. <style type="text/css">
    7. body {
    8. color: #737373;
    9. font-size: 8px;
    10. font-family: arial;
    11. background-color: #CCFFFF;
    12. }
    13. textarea,input,select {
    14. background-color: #FDFBFB;
    15. border: 1px solid #BBBBBB;
    16. padding: 2px;
    17. margin: 1px;
    18. font-size: 10px;
    19. color: #808080;
    20. }
    21. a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 10px; }
    22. a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
    23. img {border: none;}
    24. td { font-size: 14px; color: #7A7A7A; }
    25. </style></head><body>
    26. <form name="sendin" action="http://paracom-wettesingen.local/login" method="post">
    27. <input name="username" type="hidden">
    28. <input name="password" type="hidden">
    29. <input name="dst" value="" type="hidden">
    30. <input name="popup" value="true" type="hidden">
    31. </form>
    32. <script type="text/javascript" src="login-Dateien/md5.js"></script>
    33. <script type="text/javascript">
    34. <!--
    35. function doLogin() {
    36. document.sendin.username.value = document.login.username.value;
    37. document.sendin.password.value = hexMD5('\241' + document.login.password.value + '\205\201\360\004\103\170\321\340\067\203\147\006\147\302\003\166');
    38. document.sendin.submit();
    39. return false;
    40. }
    41. //-->
    42. </script>
    43. <!--<div align="center">
    44. [url=http://paracom-wettesingen.local/login?target=lv&dst=]Latviski[/url]
    45. </div> -->
    46. <table width="223" height="175" cellpadding="0" cellspacing="0" style="padding: 0px;">
    47. <tbody>
    48. <tr>
    49. <td width="221" height="175" colspan="2" align="center" valign="top" bgcolor="#bbe9ff"><form action="http://paracom-wettesingen.local/login" method="post" name="login" id="login" onsubmit="return doLogin()">
    50. <p>
    51. <input name="dst2" value="" type="hidden" />
    52. <input name="popup2" value="true" type="hidden" />
    53. </p>
    54. <p>Anmeldung am Paracom-Server </p>
    55. <table style="background-color: rgb(187, 233, 255);" width="100">
    56. <tbody>
    57. <tr>
    58. <td align="right">Benutzername </td>
    59. <td><input style="width: 80px;" name="username2" value="" type="text" />
    60. </td>
    61. </tr>
    62. <tr>
    63. <td align="right">Passwort </td>
    64. <td><input style="width: 80px;" name="password2" type="password" />
    65. </td>
    66. </tr>
    67. <tr>
    68. <td> </td>
    69. <td><input name="submit" type="submit" value="Anmeldung" />
    70. </td>
    71. </tr>
    72. </tbody>
    73. </table>
    74. <p>© Paracom </p>
    75. <p>(Veränderes Login-Fenster für Fast-P ) </p>
    76. </form></td>
    77. </tr>
    78. </tbody>
    79. </table>
    80. <p> </p>
    81. <p>
    82. <script type="text/javascript">
    83. <!--
    84. document.login.username.focus();
    85. //-->
    86. </script>
    87. </p>
    88. </body></html>


    Mfg.

    Edit by Agent: HTML-Code funktioniert mit dem VB-Tag nicht! VB-tag entfernt.

    Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von „Agent“ ()

    aso ^^


    Visual Basic-Quellcode

    1. Private Sub Command1_Click()
    2. End
    3. End Sub
    4. Private Sub Form_Load()
    5. WebBrowser1.Navigate App.Path & "\login.htm"
    6. End Sub



    mehr ist das nicht!

    EDIT by Mad Andy:
    VB-Tag eingefügt.

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Mad Andy“ ()

    "document.login.username" gibt es ja auch nicht!
    <td><input style="width: 80px;" name="username2" value="" type="text" />
    Aber "username2" gibt es.
    Gruß, Agent Smith 8-)

    activeFlags = (lazy OR weary)

    Lemgo-Verschwörung | Mathematics | VB-Paradise in blau