|
FoxWeb Support Team support@foxweb.com email |
FoxWeb Support Team support@foxweb.com email |
C:\>"\program files\GnuWin32\bin\wget.exe" -O- http://www.x-laser.net/test.fwx
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\program files\GnuWin32/etc/wgetrc --2013-02-22 02:06:26-- http://www.x-laser.net/test.fwx Resolving www.x-laser.net... 207.145.111.195 Connecting to www.x-laser.net|207.145.111.195|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `STDOUT' [<=> ] 0 --.-K/s <!DOCTYPE html> <html> <head><title>Buffer Test</title> </head> <body> 1 2 [ <=> ] 97 124B/s 3 [ <=> ] 109 81.1B/s 4 [ <=> ] 121 53.1B/s 5 [ <=> ] 133 46.8B/s 6 [ <=> ] 145 38.4B/s 7 [ <=> ] 157 36.2B/s 8 [ <=> ] 169 32.0B/s </body> [ <=> ] 187 32.1B/s in 5.8s 2013-02-22 02:06:32 (32.1 B/s) - `-' saved [187] C:\> |
Thanks for your help and sorry for being stupid -- late night programming.
Joe
FoxWeb Support Team support@foxweb.com email |
C:\>"\Program Files\GnuWin32\bin\wget.exe" -O- http://www.x-laser.net/test.fwx SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc --2013-02-21 22:51:53-- http://www.x-laser.net/test.fwx Resolving www.x-laser.net... 207.145.111.195 Connecting to www.x-laser.net|207.145.111.195|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `STDOUT' [<=> ] 0 --.-K/s <!-- ">" --></p> <table border=0 cellpadding=1 cellspacing=0 width=100%> <tr> <td colspan=3><hr><b>There was an error during the interpretation of your reques t.</b><br><br></td> </tr> <tr> <td nowrap><small><b>Message:</b></small></td> <td></td> <td><small>Script "TEST.FWX" is invalid, or non-existent</small></td> </tr> <tr> <td colspan=3><hr></td> </tr> </table> [ <=> ] 369 --.-K/s in 0s 2013-02-21 22:51:53 (51.0 MB/s) - `-' saved [369] C:\> |
BTW, IIS6 does have buffering on.
Any thoughts?
Thanks for your help.
"\Program Files (x86)\GnuWin32\bin\wget.exe" -O- http://www.x-laser.net/admin/test.fwx |
FoxWeb Support Team support@foxweb.com email |
<%
response.buffer = .F.
response.write("<div id='progressOuterDiv'></div>") response.write("<script language='JavaScript'>") response.write("var progressBar = new cProgressBar();") response.write("progressBar.init();") response.write("progressBar.show(true);") response.write("</script>")
%>
<%
if request.formcount("Submit") > 0
for x = 1 to m.RowTotal
response.write("<script language='JavaScript'>progressBar.show(false);</script>")
response.flush
XML post
XML get response
Send results to screen
end for
response.write("<script language='JavaScript'>progressBar.show(false);</script>")
response.flush endif
%>
|
<%
if request.formcount("Submit") > 0
response.buffer = .F.
response.write("<div id='progressOuterDiv'></div>") response.write("<script language='JavaScript'>") response.write("var progressBar = new cProgressBar();") response.write("progressBar.init();") response.write("progressBar.show(true);") response.write("</script>")
for x = 1 to m.RowTotal
response.write("<script language='JavaScript'>progressBar.show(false);</script>")
response.flush
XML post
XML get response
Send results to screen
end for
response.write("<script language='JavaScript'>progressBar.show(false);</script>")
response.flush endif
%>
|
FoxWeb Support Team support@foxweb.com email |
<%Response.ContentType = 'text/html;charset=utf-8'%> <!DOCTYPE html> <html> <head><title>Buffer Test</title> </head> <body> <% response.buffer = .F. for i = 1 to 8 response.write(str(i) + CRLF) response.flush wait '' timeout .5 next %> </body> </html> |
The Response.ContentType call is required.
FoxWeb Support Team support@foxweb.com email |
FoxWeb Support Team support@foxweb.com email |
FoxWeb Support Team support@foxweb.com email |
*** Script File FedEx.fwx
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
import progress.css
import progress.js
</head>
<head>
<FORM METHOD="post" ACTION="FedEx.fwx" name="FedExRateFetch">
Get information to calculate rate...
</form>
<%
IF Request.FormCount("Submit") > 0
***PROGRSS BAR M.StartTime = SECONDS() response.write("<div id='progressOuterDiv'></div>") ***Initialize and show the toolbar response.write("<script language='JavaScript'>") response.write("var progressBar = new cProgressBar();") response.write("progressBar.init();") response.write("progressBar.show(true);") response.write("</script>")
for x = 1 to m.nRowTotal
M.TotalSteps = m.nRowTotal
XML To Send FedEx Rate Request...
XML Fetch Rate Response
Send Rates To Screen
response.write("<script
language='JavaScript'>UpdateProgressBar(x / M.TotalSteps * 100,
'Completed step ' + Server.ToString(x) + ' of ' +
Server.ToString(M.TotalSteps))</script>")
WAIT '' TIMEOUT .5
endfor && loop through all services
endif
%>
<!-- Now hide the toolbar -->
<script language="JavaScript">progressBar.show(false);</script> </body> </html>
<%
************************************************************************************************** PROCEDURE UpdateProgressBar * Generates JavaScript code, which calls progressBar.update() method to update * the progress bar, for example: * <script language="JavaScript">progressBar.update(47, 'Completed 47% of the process');</script> ************************************************************************************************** LPARAMETERS PercentComplete, StatusText * First of all extend the script timeout by 10 seconds if it will expire in less than 5 seconds IF (SECONDS() - StartTime) + 5 >= Server.ScriptTimeout Server.AddScriptTimeout(10) ENDIF IF TYPE('M.StatusText') <> 'C' * No status text was specified -- Let ProgressBar code generate the status text Response.Write([<script language="JavaScript">progressBar.update(] + Server.ToString(M.PercentComplete) + [);</script>] + CRLF) ELSE Response.Write([<script language="JavaScript">progressBar.update(] + Server.ToString(M.PercentComplete) + [, '] + M.StatusText + [');</script>] + CRLF) ENDIF * Force output to be sent to browser Response.Flush ENDPROC %> |