1. Darren Longenecker
  2. PowerBuilder
  3. Tuesday, 3 September 2024 14:51 PM UTC

2019 R3 Build 2803

I'm transitioning from using a Microsoft Web Browser OLE control on a tabpage in a window to the recommended Web Browser control (WebView2).

A couple of things:

 

1. Any URL I use in the Navigate function takes 20 seconds to display within the Web Browser control. Once displayed, there is no delay browsing within the control. Why? How do I fix this? Disabling anti-virus was no help. Firewall's not holding it back. 

Compared to using the old OLE control or pasting the url to chrome, the websites open normally --less than a few second(s). I thought maybe it was my dev pc so I compiled and tried on my test pc but it's still waiting 20 seconds to show a URL. Both pc's are Windows 10 Enterprise N 22H2.

li_rtn = wb_1.Navigate(ls_URL) 

 

2. I'd like to know how I can programmatically clear the cache on a Web Browser control.

 

As always, thanks for any help.

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 3 September 2024 20:56 PM UTC
  2. PowerBuilder
  3. # 1

Hi Darren;

   Suggestion:  You can set the WV2's cache location based on the WebBrowserSet ("CachePath", ls_path ) command.

Then delete the files and directories of this cache folder when your App need to clear the WV2's cache.  HTH

Regards .. Chris

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.