1. Jörg Walter
  2. PowerBuilder
  3. Tuesday, 08 May 2018

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 ?

Who is viewing this page
Accepted Answer
Roland Smith Accepted Answer Pending Moderation
0
Votes
Undo

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
:-) OK, that works! Thank you.

  1. Jörg Walter
  2. Wednesday, 9 May 2018
There are no comments made yet.
  1. Tuesday, 8 May 2018
  2. PowerBuilder
  3. # Permalink
Jörg Walter Accepted Answer Pending Moderation
0
Votes
Undo

I mean: That works!

Comment
There are no comments made yet.
  1. Tuesday, 8 May 2018
  2. PowerBuilder
  3. # 1
  • Page :
  • 1


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