Open GoogleCodeExporter opened 9 years ago
Andreas,
the THtmlViewer component handles file names only and does not know anything
about protocols like http:. That's why the built-in default click handler
expands the second file name with the base path of the loaded document and - of
course - fails to load it.
The first link is ignored as it has no "file" extension and won't be opened
even if it were a HTML document. THtmlViewer only tries to load [X]HTML
documents, text files and images. The types are identified by file extension.
In procedure HtmlViewer.InitFileTypes you can find a list of recognized file
extensions.
I'd prefer not to take action on this behaviour before version 11.5 is
released. After that it is planned to unify the document loading methods of
THtmlViewer, TFrameViewer and TFrameBrowser and add pluggable protocol
handlers. The the message would be something like 'Cannot load "<url>". No
handler for protocol "<protocol>" found in "<list of supported protocols>"'.
A more sophisticated document type detection would be nice, too.
OrphanCat
Original comment by OrphanCat
on 26 May 2014 at 6:54
Original issue reported on code.google.com by
weidner....@t-online.de
on 18 May 2014 at 7:28Attachments: