AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Lokale Links im TWebBrowser
Thema durchsuchen
Ansicht
Themen-Optionen

Lokale Links im TWebBrowser

Ein Thema von fillibuster · begonnen am 3. Nov 2010 · letzter Beitrag vom 5. Nov 2010
 
fillibuster

Registriert seit: 3. Nov 2010
Ort: Coesfeld
245 Beiträge
 
Delphi 2010 Professional
 
#3

AW: Lokale Links im TWebBrowser

  Alt 3. Nov 2010, 22:20
Hi,

danke für deine Antwort. Leider funktioniert das so nicht . Die Bilder werden unter Win 7 nicht angezeigt (Anwendung liegt auf dem Desktop - ö und Leerzeichen im Pfad). Mein HTML sieht so aus:

Delphi-Quellcode:
function htmlHeader() : string;
begin
  result := '<?xml version="1.0" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"' + #13#10 +
            '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' + #13#10 +
            '<html xmlns="http://www.w3.org/1999/xhtml">'+ #13#10 +
            '<head>'+ #13#10 +
            ' <title>' + applicationName + '</title>' + #13#10 +
            ' <meta http-equiv="content-type" content="text/html; charset=UTF-8" />' + #13#10 +
            ' <link rel="stylesheet" type="text/css" href="' + htmlpath + 'style.css" />'+ #13#10 +
            '</head>' + #13#10 +
            '<body>' + #13#10 +
            '<div id="headerlogo">' + #13#10 +
            ' <img src="' + htmlpath + 'pics2.png" alt="logo">&nbsp;' + #13#10 +
            '</div>' +
            '<div id="headername">' + applicationName + '</div>' +
            '<div id="topmenu">' +
            ' <a href="test://1">add</a> | <a href="test://2">stack</a> | <a href="test://3">pref</a> | <a href="test://4">help</a> | <a href="test://5">info</a>' + #13#10 +
            '</div>' + #13#10 +
            '<div style="clear : both;"></div>' + #13#10 +
            '<div id="content">';
end;
Mit Pfaden ohne Sonder- und Leerzeichen geht das ohne Probleme.

Viele Grüße ...
  Mit Zitat antworten Zitat
 


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 21:37 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz