1. Michael Krul
  2. PowerBuilder
  3. Sunday, 13 October 2024 14:59 PM UTC

Hello,
I have a WebBrowser control.
I need to intercept the Link that should be opened in another INTERNET Browser window on the Click event and open this Link in a new WebBrowser (in the PowerBuilder).

In the attached file, there is an HTML example with many links activated by mouse clicks.
I need to intercept the link and open it in a new PowerBuilder window instead of a Internet browser window.

How can I do this?

Thanx.

Attachments (1)
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 October 2024 16:56 PM UTC
  2. PowerBuilder
  3. # 1

You would need to lose the HTML page in the Web browser control, and then you would need to code your PowerScript to listen for the event clicks and launch the URL in another PB window.  Basically, JavaScript cannot directly control PB you need your PowerScript to do this.  I don't have exact example to give you, but you can look at this demo app to get some ideas how PowerScript can be integrated with JavaScript.  https://github.com/Appeon/PowerBuilder-Graph-Example

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Sunday, 13 October 2024 23:18 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Michael -

Because the underlying browser engine has recently changed in PowerBuilder, would you please provide the version, release, and build of PB that you are using (which is ALWAYS a good idea whenever you ask any question)?

Thanks!  John

Comment
  1. Michael Krul
  2. Monday, 14 October 2024 08:17 AM UTC
Version 2022 R3 Build 3391
  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.