Einzelnen Beitrag anzeigen

Benutzerbild von Wormid
Wormid

Registriert seit: 26. Aug 2003
Ort: Steinfurt
292 Beiträge
 
Delphi XE2 Professional
 
#10

Re: WebSite von Server zum Client "pushen" (CGI Sc

  Alt 12. Sep 2003, 09:31
Ein kleines Beispiel zu meinem Denkansatz aus einem Usercomment in der PHP-Dokumentation...

Schritt 1, vor der langwierigen Datenbankoperation:
Zitat:
the part that you want to show during the 'processing' has to be embedded in a SPAN tag like so:

echo "<span id=\"processing\">analysing data...</span>";
flush();
Schritt 2, nach der dicken Datenbankoperation...
Zitat:
then the long calculations will follow, after a few seconds you then simply send:

echo "<script>processing.style.display='none'</script>";

taadaa, and the part within the SPAN tags will disappear.
Ich denke, das sollte so auch ohne weiteres auf Delphi übertragbar sein.

Gruß

Wormid
Debuggers don't remove Bugs, they only show them in Slow-Motion.
  Mit Zitat antworten Zitat