Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 47
Joined: Sat Jun 16, 2018 10:30 pm

[Done] FreeGadget on an ImageGadget causes an error on IE11

by Niffo Tue Nov 27, 2018 6:35 pm

FreeGadget() (or CloseWindow where the gadget is) on an ImageGadget causes a JS error and stops the script on Internet Explorer 11 (win7 or Win10)
The error is "the object does not handle the property or the method "remove". See a screenshot of the error (in French) below.
OpenWindow(0, 0, -30, DesktopWidth(0), DesktopHeight(0), "Main Window")
ImageGadget(1, 100, 100, 300, 300, 0, #PB_Image_Border)
FreeGadget(1)


Image
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: 2.21B : FreeGadget on an ImageGadget causes an error on

by Fred Sun Jan 27, 2019 1:40 pm

ie11 is too old unfortunately, i will update the requierements.
User avatar
Niffo
 
Posts: 47
Joined: Sat Jun 16, 2018 10:30 pm

Re: FreeGadget on an ImageGadget causes an error on IE11

by Niffo Mon Jan 28, 2019 10:06 am

But IE 11 is the only native integrated browser on Windows 7 and all other functions of SB seems to work good with :|
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: FreeGadget on an ImageGadget causes an error on IE11

by Fred Mon Jan 28, 2019 10:24 am

It's no more maintained since a while thought, I think it should be really deprecated by now.. Windows 7 also is end of life.
User avatar
Peter
 
Posts: 581
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: FreeGadget on an ImageGadget causes an error on IE11

by Peter Mon Jan 28, 2019 11:17 am

@Fred: in my opinion you just have to replace all x.remove() with $(x).remove()
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: FreeGadget on an ImageGadget causes an error on IE11

by Fred Mon Jan 28, 2019 11:47 am

Thanks Peter, I will give it a try. Niffo, you could also try it by editing the javascript and press f5 to see if it solves it for you :).
User avatar
Niffo
 
Posts: 47
Joined: Sat Jun 16, 2018 10:30 pm

Re: FreeGadget on an ImageGadget causes an error on IE11

by Niffo Mon Jan 28, 2019 6:02 pm

I can confirm that using JQuery will workaround the problem and continue to work in other browsers (tested on Edge, Firefox, Chrome and Safari)

http://gressard.net/download/fred/ei11_image_test.html

(Replaced "h.remove()" and "b.remove()" by "$(h).remove()" and "$(b).remove()" in "d.free()" function on line 205 of "ei11_image_test.js")
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: FreeGadget on an ImageGadget causes an error on IE11

by Fred Tue Jan 29, 2019 8:21 am

OK then I will fix it so it still run on ie11, but I don't think we will actively support this browser.. Thanks for your test !
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: [Done] FreeGadget on an ImageGadget causes an error on I

by Fred Mon Feb 04, 2019 4:29 pm

Fixed.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest