From: David Botton <david@botton.com>
Subject: Re: Launching Popup Windows in Gnoga
Date: Mon, 20 Oct 2014 08:22:11 -0700 (PDT)
Date: 2014-10-20T08:22:11-07:00 [thread overview]
Message-ID: <307b4479-1449-4de2-94ff-d960a140f198@googlegroups.com> (raw)
In-Reply-To: <dddd39df-1b7d-47f0-aeec-668cb414f1f3@googlegroups.com>
I have pushed in to git changes to tutorial 6 that show how to more gracefully handle waiting for a popup.
It is not really possible to set an event on the popup since doing so would end up in a race condition in most situations. Also there is no "standard" between browsers to handle it properly.
In a multi_connect app if the popup is also a gnoga window it would be trivial to just have the two sync up in pure Ada using tasks or POs.
For the Singleton the following insures that you can both access the contents and also that the window has been created and displayed by the browser:
while
App.My_Popup2.Document.Ready_State /= Gnoga.Gui.Document.Complete or
App.My_Popup2.Width = 0
loop
delay 0.25;
end loop;
Also you will notice in Tutorial 6 that Launch now throws an exception if popups are blocked Gnoga.Gui.Window.Popup_Blocked
David Botton
next prev parent reply other threads:[~2014-10-20 15:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 12:56 Launching Popup Windows in Gnoga Jeremiah
2014-10-20 13:38 ` David Botton
2014-10-20 15:22 ` David Botton [this message]
2014-10-20 22:01 ` Jeremiah
2014-10-20 22:30 ` David Botton
2014-10-20 23:07 ` Jeremiah
2014-10-21 0:21 ` David Botton
2014-10-21 0:27 ` David Botton
2014-10-21 1:27 ` David Botton
2014-10-21 2:06 ` jeremiah.breeden
2014-10-21 11:24 ` David Botton
2014-10-22 1:56 ` Jeremiah
2014-10-22 2:09 ` David Botton
2014-10-22 2:57 ` Jeremiah
2014-10-22 15:24 ` David Botton
2014-10-21 2:03 ` Jeremiah
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox