Search found 6 matches

by Techmas
Sat Nov 23, 2024 5:56 pm
Forum: Bugs - Windows
Topic: WebGadget: #PB_Web_Busy returns 0 before page is fully loaded
Replies: 0
Views: 2661

WebGadget: #PB_Web_Busy returns 0 before page is fully loaded

It seems that #PB_Web_Busy returns 0 before the page is fully loaded.

In the below example, #PB_Web_PageTitle returns nothing after #PB_Web_Busy returns 0. The PageTitle can only be fetched by adding another loop to wait until the website's title actually has changed.


If OpenWindow(0, 0, 0, 600 ...
by Techmas
Mon Nov 18, 2024 9:10 pm
Forum: Coding Questions
Topic: [Solved] WebGadget: How to get PageTitle with #PB_Web_Edge flag?
Replies: 1
Views: 660

WebGadget: How to get PageTitle with #PB_Web_Edge flag?

Thanks to mve001 the problem could be solved by adding a loop to wait until the website's title has changed instead of #PB_Web_Busy returns 0. It seems that #PB_Web_Busy may return 0 before the page is fully loaded.

If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window ...
by Techmas
Sat Apr 27, 2024 9:23 am
Forum: Coding Questions
Topic: [Solved] WebGadget: How to get PageTitle with #PB_Web_Edge flag?
Replies: 1
Views: 660

[Solved] WebGadget: How to get PageTitle with #PB_Web_Edge flag?

Hi, I encountered the following issue concerning WebGadget:

It seems that the PageTitle can only be fetched, if the #PB_Web_Edge flag is not set. How can i get it to work with #PB_Web_Edge?
I am grateful for suggestions!


If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB ...
by Techmas
Tue Apr 23, 2024 9:49 pm
Forum: Coding Questions
Topic: HTML code streamed into WebGadget cannot run external JavaScript
Replies: 4
Views: 1263

Re: HTML code streamed into WebGadget cannot run external JavaScript

You are right. As you suspected it says 'Not allowed to load local resource'. It's probably a security thing... but i still find it kind of strange, because when i create a local html file with a local resource (same code that was streamed into the WebGadget or WebView), the problem does not occur ...
by Techmas
Mon Apr 22, 2024 9:49 pm
Forum: Coding Questions
Topic: HTML code streamed into WebGadget cannot run external JavaScript
Replies: 4
Views: 1263

HTML code streamed into WebGadget cannot run external JavaScript

It seems that external JavaScript cannot be executed from code that is streamed into the webgadget.

Example with external JavaScript in separate file (does not work):

If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 0, 0, 600, 300 ...