1. Roland Smith
  2. PowerBuilder
  3. Tuesday, 28 March 2023 17:14 PM UTC

PB 2022 Build 1892.

I am changing all the places where our app uses the IE Web Browser control to use the built-in Web Browser control.

The following link opens the page in a popup window created by the control itself. Is it possible to trap the link processing and instead launch it in the user's default web browser app? I have code to launch the default browser, I just need to know if it is possible to insert that code into link processing.

The IE Web Browser control opened it in the IE Web Browser app.

<a target="_blank" href="/ICS/ClientConfig/HtmlContent/DocumentationNotice.html"><img src="/ICS/ClientConfig/HtmlContent/Images/Document.png">Documentation Notice</a>
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 29 March 2023 00:40 AM UTC
  2. PowerBuilder
  3. # 1

Hi Roland,

Please go to WebBrowser control > Properties > General tab to uncheck the 'PopupWindow' option.
https://docs.appeon.com/pb2022/objects_and_controls/PopupWindow.html

Regards,
Kai

Comment
There are no comments made yet.
Tobias Roth Accepted Answer Pending Moderation
  1. Wednesday, 26 April 2023 04:50 AM UTC
  2. PowerBuilder
  3. # 2

Hi,

for all who have the request too,
for the similar request I have already opened an Enhancement Request as a support ticket:

Ticket 6978 - Webbrowser: Event-Handling OpenLink 

Alternatively, you could also use RegisterEvent to trigger an event in PB and pass the URL as a parameter. Of course, this only works if changes to the website/JS are allowed.

Regards,
Tobi

 
Comment
There are no comments made yet.
Jim Reese Accepted Answer Pending Moderation
  1. Monday, 22 May 2023 18:13 PM UTC
  2. PowerBuilder
  3. # 3

We have a similar requirement, we need to display an initial page in the webbrowser control, but any subsequent links selected from that page need to open in the user's default browser externally. Neither the existing 2022 control, nor the R2 beta control seem to allow for this. The PopupWindow option does not meet our requirements, as it has no URL editline which our users may need to copy and paste. Besides that, I've had occasions where even though the attribute checkbox is selected in the IDE, the popup window does not popup, the new page is processed in the original control.

Comment
  1. Jim Reese
  2. Monday, 22 May 2023 18:22 PM UTC
Hang on, now that I actually got a popup window to open in R2 beta, I do see an addressline, not sure why I wasn't seeing it before. One change I made was using Opensheet() for my test window instead of just using Open(), not sure if that made a difference or not.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.