NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on May 29, 2013, 10:57:39 PM

Title: Auto Refresh NetWebBrowse
Post by: rupertvz on May 29, 2013, 10:57:39 PM
Hi Guys,

I'd like to auto-refresh a NetWebBrowse based on a specific field-value being returned by an ACCESS:FILE.FETCH() file method.

The file method ACCESS:FILE.FETCH() should automatically be called every 20 seconds - after the insert.

In other words,

As soon as the user inserted a record in the NetWebBrowse;
The NetWebBrowse should check for a field value in a "non-related" table every 20 seconds.
The NetWebBrowse should refresh as soon as it founds the expected value.

... Until a next record is inserted.

I am not too sure which embed point to use for this?
Title: Re: Auto Refresh NetWebBrowse
Post by: Bruce on May 30, 2013, 02:29:48 AM
you can't "push" from the server to the client. There is no connection to push on.
so the trigger has to come from the browse - maybe a timer (never a good idea) maybe a button the user presses to refresh the browse - something along those lines.

cheers
Bruce
Title: Re: Auto Refresh NetWebBrowse
Post by: rupertvz on May 30, 2013, 03:16:23 AM
Thanks Bruce,

I've build in a button for the user to press to refresh the browse.
It is working, however, I am not sure how to get the user to keep on refreshing the browse, as the background process may only complete in 30 - 40 seconds,

I've put a message on the screen, but was hoping for something more practical ...   ???