flush method

Post Reply
source1Tamer
Posts: 91
Joined: Tue Nov 13, 2001 3:49 pm

flush method

Post by source1Tamer »

Hi,
I could not print out some HTML output to the browser before calling a vortex function that takes a long time..as I need to show up some page contents while the user is waiting for the process....
I tried to use the flush method,, but nothing happened...
here is a snippet of my script:
<!------------------------------------------------->
<!------ Some HTML tags here-------->
<flush>
<!--------Here I call a slow process----------->
<!--------Some output that show up weather the process has been faild or not.-------------->
<!------------------------------------------------->

..thanks,
Tamer
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

flush method

Post by bart »

You have to be sure that the page can be rendered up to the point of the flush. IE: No open <tables> etc...

Try this:

<html>
<head></head>
<body>

Waiting...
<br>
<flush>
<functioncall>
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

flush method

Post by John »

The flush will guarantee that Vortex has sent the data. As mentioned, if the HTML is not complete enough to render, e.g. open tables it may not display, and some webservers may also be caching the content, which is beyond Vortex's control.

You can use the geturl tool to fetch the URL from the command line, and you should be able to see if the data is sent back to the browser when you expect.
John Turnbull
Thunderstone Software
Post Reply