Im trying to test the web browser object in PB 2019 R2.
Seems straight forward to just add the object to a window, call navigate in the open window event.
integer li_rtn
li_rtn = wb_1.Navigate(" www.appeon.com ")
but it returns -1
Obviously Im missing something.
Thanks for any help.
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Error testing the web browser object in PB 2019 R2.
- Doug Gray
- PowerBuilder
- Wednesday, 16 December 2020 17:24 PM UTC
- Wednesday, 16 December 2020 17:35 PM UTC
- PowerBuilder
- # 1
Try putting "https://" on the front of your URL.
The browser control supports loading files from different sources, such as local files though "file://", so you need the "https://" on the URL to indicate where it's being loaded from.
- Wednesday, 16 December 2020 17:38 PM UTC
- PowerBuilder
- # 2
Thanks, I did have https:// I was trying them all.
wb_1.Navigate("https://www.appeon.com")
wb_1.Navigate("http://www.appeon.com")
wb_1.Navigate("/www.appeon.com")
So I assume there is nothing else needed to initialize the web browser object ?
Thanks
Doug
- Bruce Armstrong
- Thursday, 17 December 2020 01:05 AM UTC
-
Helpful Loading... Helpful 0
- Wednesday, 16 December 2020 20:27 PM UTC
- PowerBuilder
- # 3
Hi Doug;
This is working OK from my STD Framework's Demo App. It can use both the IE and built-in Web Browsers. Both of these have no issues with the Appeon Website. Here is an example of using the built-in control ....
Here is the code that drives the Web Browser control from the Post Constructor event ...
sr_pass_data lo_sr
lo_sr = Message.Powerobjectparm
THIS.tag = lo_sr.si_data[1]
THIS.navigate ( THIS.Tag )
PARENT.Title += Upper ( THIS.tag )
Here is the value of the structure's "si_data[1]" ...
HTH
Regards ... Chris
- Thursday, 17 December 2020 03:52 AM UTC
- PowerBuilder
- # 4
Greetings, Doug -
Are you attempting to run this app from the IDE or as a compiled application? Does your app have access to all of the runtime DLL's? There are some new run-time DLL's that implement the new chromium-based browser control.
https://docs.appeon.com/pb2019r2/application_techniques/ch36s04.html
The runtime DLL's for the new webbrowser control are listed at the end of the table.
Regards, John
- Tuesday, 19 January 2021 00:15 AM UTC
- PowerBuilder
- # 5
I have not resolved this.
maybe my application install is missing something because I seem to having other issues like using
PBDOM_Builder, I get "illegal data type" when I try to use it to parse XML files.
I will open another issue/question for that problem.
- Tuesday, 19 January 2021 01:34 AM UTC
- PowerBuilder
- # 6
After adding the PBDs to my application libraries this problem seems to be fixed.
Thanks for all the help.
Doug
- John Fauss
- Tuesday, 19 January 2021 14:25 PM UTC
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.