Symptom

When using the Microsoft Web Browser OLE control in a PowerBuilder application some webpages show javascript errors, is there a way to eliminate these?   

Environment

  • PowerBuilder
  • PowerBuilder application with a Microsoft Web Browser OLE control  

Cause

The Microsoft Web Browser OLE control is a third party control and the errors can be replicated with other tools.   Please refer to the Microsoft site for further information on this control.

Resolution

To suppress the javascript errors in your PowerBuilder application, use ole_1.object.silent=1 before navigate().  Code snippet below:

ole_1.object.silent=1

ole_1.object.navigate("www.appeon.com") 

This will not eliminate the root cause of the javascript errors, the additional line of code just suppresses the errors.  

0
0