Autor Beitrag
eraser_seb
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 41



BeitragVerfasst: Mi 13.10.10 13:38 
Hallo, folgendes:
Ich benutze den Webbrowser um webseiten im Intranet zu zeigen und um eine webappliction zu starten wie denn reportbuilder vom SQL Server Reporting Services.
meine frage ist ob man irgendwie abfragen kann ob die angegebende Webseite korrekt geladen ist?
Wenn eine falsche url angegeben ist zeigt der webbrowser "Seite kann nicht gefunden werden" kann man das irgendwie abfragen?

Danke euch schonmal
LSanchez
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26
Erhaltene Danke: 8



BeitragVerfasst: Mi 13.10.10 15:38 
Verwende die Eigenschaft LocationURL des WebBrowsers.

Gruß

Luis Sanchez
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 13.10.10 19:38 
Wenn die Seite nicht gefunden wurde, sollte der Responsecode 404 sein.

Außerdem kannst du einfach auf das Ereignis OnNavigateError oder so ähnlich reagieren, da bekommst du auch unter anderem genau diesen Statuscode.
eraser_seb Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 41



BeitragVerfasst: Mi 20.10.10 11:58 
Also das Ereigniss onNavigateError ist der richtige ansatz.
Ich habe "nur" ein Problem.
Ich muss Delphi 5 noch benutzen. Gibt es in Delphi 5 eventuell eine alternative?
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mi 20.10.10 12:17 
Versuch es mal mit dem EmbeddedWB. Gibt es gratis auf www.bsalsa.com/product.html