Asynchronous programming challenge: open one or two result windows

Started by ubacher, September 14, 2017, 06:43:45 PM

Previous topic - Next topic

ubacher

Asynchronous programming challenge:

I have two sets of files
I want to display each set on a result window (unless the set is empty!)
The difficulty here is that one needs to wait until one window is displayed before
posting the request to open the second one - but either one may need to be skipped.
I am sure some Javascript guru will have a neat solution for this.

Now the part which I found more difficult:
After the two result windows have been displayed I want to have the filewindowid of the two result windows.
Something like:
Win1 id: 2, Win2 id: 3
(I haven't been able to get this working correctly so far. Of course I think it might be a bug but experience says its a quirk of Javascript which I don't understand )