Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 6 Jahren, 9 Monaten
Letzter Beitrag:
vor 6 Jahren, 9 Monaten
Beteiligte Autoren:
Joel, Piet van Zanten, KenKnight

Webdev - use an instance to run code

Startbeitrag von Joel am 27.10.2011 20:31

Hi all -

I'd like to open a WebDev app when a "Parent" WebDev app is opened to run some code to do some checks and updates on the database. I know, would be best to use WinDev to do this, but I don't have WinDev.

The challenge is this, when I open the secondary App, that new browser will get the focus. I actually want this secondary app to "run in the background" as it were and then shut itself down when it's done.

I never really want the user to see this, so I want the "parent" app to keep the focus the entrie time. IS there a way to do this?




Hi Joel,

If I understand you correctly, why not just fire off the call via an ajax event inside your primary app. This could happen via a timer in browser code, an event trigger by the user on the browser side or whatever, but the user would never have to see any activity.


von KenKnight - am 28.10.2011 18:42
Hi Joel,

According to the help of Webdev 16 you can use threads in server code.


von Piet van Zanten - am 28.10.2011 19:48
Hi guys -

Thanks for the input -

I wanted to open another browser window so that the users didn't notice the slow start up each time the app came up. There are a bunch of processes that need to run and they can become a bit time consuming. Again, the right way to do this is with a WinDev app, but trying to keep costs down for now. So, is it possible to open another browser window, but keep the focus in the originating browser?



von Joel - am 28.10.2011 20:38
Hi Joel,

If you use a thread I assume the user will not notice anything because the thread is executed on the server and control is back to the browser.
Just create a server procedure and use the properties (right click its name in the code pane) to make it execute in the background as a thread.


von Piet van Zanten - am 28.10.2011 21:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.