Found an issue in SpiderBasic ? Please report it here !
StoneOakvalley
 
Posts: 34
Joined: Tue Apr 05, 2016 2:14 pm
Location: Norway

2.30: Webgadget does not work anymore

by StoneOakvalley Mon Dec 02, 2019 10:47 pm

If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280, "http://www.spiderbasic.com")
EndIf

In FF 70.0.1 I get error
TypeError: e.indexOf is not a function

In IE11
TypeError: Object doesn't support property or method 'indexOf' TypeError: Object doesn't support property or method 'indexOf'

The window will open, but not content is shown.

This worked fine in SB2.21
Registered owner of PureBasic and SpiderBasic :-) Good stuff!
User avatar
Peter
 
Posts: 662
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: 2.30: Webgadget does not work anymore

by Peter Tue Dec 03, 2019 7:29 am

Confirmed.

@Fred: That's because of the switch to jQuery 3.

see: https://stackoverflow.com/questions/37751179/jquery-3-0-window-loadfunction

Greetings ... Peter
munfraid
 
Posts: 37
Joined: Sat Mar 24, 2018 1:33 pm

Re: 2.30: Webgadget does not work anymore

by munfraid Tue Dec 03, 2019 1:34 pm

Yes, confirmed.

This is also strange. The second debug message doesn't appear at all...

Code: Select all
If OpenWindow(0, 0, 0, 0, 0, "Test", #PB_Window_Background)
 
  Debug "Before"
  WebGadget(0, 0, 0, 600, 400, "https://spiderbasic.com/")
  Debug "After"
 
EndIf
User avatar
Peter
 
Posts: 662
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: 2.30: Webgadget does not work anymore

by Peter Tue Dec 03, 2019 1:53 pm

munfraid wrote:This is also strange. [...]

This is because the WebGadget causes a JavaScript error that interrupts further processing of the code.

Greetings ... Peter
munfraid
 
Posts: 37
Joined: Sat Mar 24, 2018 1:33 pm

Re: 2.30: Webgadget does not work anymore

by munfraid Tue Dec 03, 2019 3:25 pm

Peter wrote:This is because the WebGadget causes a JavaScript error that interrupts further processing of the code.

I see... that's why the compiler doesn't complain, just the code execution in the browser fails.
Thanks, Peter!
munfraid
 
Posts: 37
Joined: Sat Mar 24, 2018 1:33 pm

Re: 2.30: Webgadget does not work anymore

by munfraid Thu Dec 12, 2019 5:38 pm

Does anybody know if there's a workaround for this issue? I need to use SB 2.30 for android app creation, but also the webgadget.
Charlie
 
Posts: 22
Joined: Thu Jan 10, 2019 1:54 am
Location: New Brunswick, Canada

Re: 2.30: Webgadget does not work anymore

by Charlie Tue Jan 14, 2020 1:44 am

SpiderBasic 2.30 Webgadget not working for me either on my Linux-enabled Chromebook.

Strange thing, I upgraded to SpiderBasic 2.30 from 2.22 yesterday so the app I was working on could use MessageRequester. I didn't have problems with WebGadget until late today (i.e. after turning off my Chromebook last night and turning it back on just a few hours ago.

So I re-installed SpiderBasic 2.22 and found that, aside from MessageRequester not working anymore (which makes sense), the WebGadget still wasn't working.

I fiddled with all sorts of things until it dawned on me: something must be cached. So CTRL-Refresh (Chrome web browser), and WebGadget works again.

All of that in case anybody else, after reverting from SpiderBasic 2.30 to an older version, wonders why the heck WebGadget still isnt' working. Frigging cache ...
Fred
Site Admin
 
Posts: 1207
Joined: Mon Feb 24, 2014 10:51 am

Re: 2.30: Webgadget does not work anymore

by Fred Tue Jan 14, 2020 8:14 pm

I will take a closer look
StoneOakvalley
 
Posts: 34
Joined: Tue Apr 05, 2016 2:14 pm
Location: Norway

Re: 2.30: Webgadget does not work anymore

by StoneOakvalley Thu Jan 16, 2020 6:16 pm

@Charlie

I have set Firefox on Windows to always clear cache, as it always gave me headaches either during normal programming or spiderbasic programming especially.

@Fred
Thanks, all my bigger projects (3-4 of them) all relies heavily on Webgadget, so I'm kinda stuck dead foot with SB2.22 for now (not that SB2.22 got anything wrong with it, fine piece of software - but always nice to have latest version justincase :-).
Registered owner of PureBasic and SpiderBasic :-) Good stuff!
User avatar
Peter
 
Posts: 662
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: 2.30: Webgadget does not work anymore

by Peter Thu Jan 16, 2020 6:39 pm

Quickfix:

until it's fixed: just copy jquery.min.js (V2.1.4) from an older release to the C:\SpiderBasic\Libraries\javascript - folder.

Greetings ... Peter
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 0 guests