NetTalk Central

Author Topic: Refresh a row in browse after servedocument  (Read 2750 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Refresh a row in browse after servedocument
« on: September 21, 2014, 02:30:52 PM »
NT 8.26
CL 9.0

browse of Completed Documents
The Document name calls ServeDocument to download the document for the user (Works Well)
When the user has completed the download I want to put the name of the user in a field in the browse row
I have it working except to see the name the user has to double click the row to refresh it.

How can I do this on return to the  browse?

Brian
Brian

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a row in browse after servedocument
« Reply #1 on: September 21, 2014, 11:19:36 PM »
The ServeDocument call is a non-ajax request, so you can't update the screen when it is called.

Also you have no way of knowing when it is "completed". The WebServer program sends the file to the WinSock layer (which may take only a second) and it is then sent to the browser over the connection (which could take minutes.)

there is no indication on the server side that the file has been received, and no connection to the browser at that point over which to send a browse update.

cheers
Bruce