Page 1 of 1

Retrieving URLs Of Blocked Popups On Webgadget

Posted: Tue Sep 09, 2014 5:51 pm
by es_91
Hi.

Now, it's propably every kids dream (that programs with PB) to once write an own Web Browser.

As often as it's said that PureBasic is not made to offer a full web browser's functionality's support, I must press the fact that there is one important piece of even an in-program web browsing module missing - the getting of the blocked popup page's URL.

It would be needed to write a tab-based browser or to turn popup pages into non-popup calls.

The NavigationCallback does not retrieve blocked popup pages' URLs.

So, how can we get them?

Regards,

es_91.

Re: Retrieving URLs Of Blocked Popups On Webgadget

Posted: Wed Sep 10, 2014 6:16 am
by es_91
Freak wrote:There is a DWebBrowserEvents2 interface implemented for the WebGadget to listen to
its events. There is a NewWindow2 and a NewWindow3 event which fire when a popup is to be opened.

The NewWindow3 event provides information such as the Url to open, but i never got it to fire
that event in my tests. I only received the NewWindow2 which gives no such info.
Thats why there is no option in PB to get the url that would be opened.
http://forums.purebasic.fr/english/view ... 13&t=32464