No errors are thrown in the dev console but I made the following observation:
The following code shows 'undefined' in the TextGadget...
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebView", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If WebGadget(0, 0, 25, 600, 275,"https://www.blablah.com/index.html")
TextGadget(#PB_Any,0,0,600,25,GetGadgetItemText(0,#PB_Web_PageTitle))
EndIf
EndIf
...whereas the following code shows 'undefined' in the MessageRequester and the actual page title in the TextGadget, which means the title CAN be fetched.
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebView", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If WebGadget(0, 0, 25, 600, 275,"https://www.blablah.com/index.html")
MessageRequester(GetGadgetItemText(0,#PB_Web_PageTitle))
TextGadget(#PB_Any,0,0,600,25,GetGadgetItemText(0,#PB_Web_PageTitle))
EndIf
EndIf
The title can be fetched if interrupted by the message requester... but i hope there is a better solution for this. Any other ideas?