Autor Beitrag
Aadelbert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

XP, WIN 2000, NT 4.0
D6 Enterprise
BeitragVerfasst: Fr 20.01.06 22:13 
Hallo Leute,

ich brauch ein bisschen Hilfe. Ich muss von meiner Anwendung in 15 minütigen Abständen eine Website aufrufen, um Daten abzurufen bzw. in meinem Programm zu aktualisieren.

Die Website aufzurufen ist kein Problem, aber es stehen immer noch dieselben Daten drin wie beim ersten Aufruf.

1. Wird die Seite etwa immer aus dem Cache geladen?

2. Mit welchem Befehl kann ich das aktualisieren der Website erzwingen?

Danke für jede Hilfe
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 20.01.06 22:18 
Du solltest etwas Code liefern, wie Du den Seiteninhalt lädst.
Aadelbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

XP, WIN 2000, NT 4.0
D6 Enterprise
BeitragVerfasst: Sa 21.01.06 13:26 
Mit folgenden Code rufe ich die Website auf:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
var
 Form1: TForm1;
 IEApp: OLEVariant;

implementation

procedure TForm1.Timer1.Timer(Sender: TObject);
var h: hwnd;
begin
IEApp := CreateOLEObject('InternetExplorer.Application');
IEApp.Visible := true;
IEApp.Navigate('http://www.meineseite.de');
end;


Z.Zt. muss ich jedesmal manuell aktualisieren. Ich möchte das Aktualisieren aber mit dem Timer-Aufruf automatisch machen. Vielleicht hilft das jetzt für einen Tip.

Danke

Moderiert von user profile iconGausi: Beitragsformatierung überarbeitet.
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: Sa 21.01.06 13:38 
Im OnTimer-Ereignis des Timers einfach IEApp.refresh; (oder ähnlich)
Aadelbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

XP, WIN 2000, NT 4.0
D6 Enterprise
BeitragVerfasst: Sa 21.01.06 14:35 
Habe ich jetzt ausprobiert. Kommt ... eine Exception der Klasse EOleException ... 'Unbekannter Fehler'.

In der Delphi-Hilfe gibt es Refresh mit den Werten 0 bis 3, wobei m.E. Refresh3 zutreffend sein dürfte. Ich weiß das leider nicht einzusetzen. Könnt ihr mir noch einmal helfen?

Danke
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: So 22.01.06 11:42 
Wieso machst du das eigentlich alles so umständlich. Installiere dir mal die Webbrowser-Komponente (auf Active-X installieren klicken). Ich habs damit ausprobiert. Funktioniert ohne Probleme...
Aadelbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

XP, WIN 2000, NT 4.0
D6 Enterprise
BeitragVerfasst: Mo 23.01.06 10:07 
Danke, jetzt funktíoniert es.
binco
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Fr 18.08.06 22:36 
Titel: Internetseite in regelmäßigen abständen aufrufen
Ich benötige ein kleines Prog, welches in regelmäßigen Abständen auf eine Internetseite zugreift und so dem Server die IP Adresse übergibt. Leider habe ich nur Basiskenntnissse in Delphi.

Vielen Dank
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Sa 19.08.06 13:41 
Titel: Re: Internetseite in regelmäßigen abständen aufrufen
user profile iconbinco hat folgendes geschrieben:
Ich benötige ein kleines Prog, welches in regelmäßigen Abständen auf eine Internetseite zugreift und so dem Server die IP Adresse übergibt. Leider habe ich nur Basiskenntnissse in Delphi.

Vielen Dank

Stelle besser eine konrekte Frage in einem neuen Topic, dann wird Dir auch geholfen.