1. Jörg Walter
  2. PowerBuilder
  3. Tuesday, 8 May 2018 14:22 PM UTC

Hi

 

I want to display some Javascript component in a PB OLE Browser component. That works?

I receive clicked and doubleclicked events.

Is there a way to trigger PB events (anything) or event call PB functions from the Javascript execution flow ?

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 8 May 2018 18:13 PM UTC
  2. PowerBuilder
  3. # Permalink

Calling javascript or modifying the page from PowerBuilder is fairly straight forward:

https://ckhung.wordpress.com/2015/07/22/work-with-web-browser-ole-from-powerbuilder/

To call PowerBuilder code from Javascript you can change the document title which would trigger the titlechange event in PowerBuilder. Since the web page is embedded on a window, you won't see it. Then in the titlechange event, you can have a case statement that looks at the value passed and determines what to do. The value would have a command code, a separator character and then some data.

 

 

Comment
  1. Jörg Walter
  2. Wednesday, 9 May 2018 09:23 AM UTC
:-) OK, that works! Thank you.

  1. Helpful
There are no comments made yet.
Jörg Walter Accepted Answer Pending Moderation
  1. Tuesday, 8 May 2018 14:23 PM UTC
  2. PowerBuilder
  3. # 1

I mean: That works!

Comment
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.