Search found 709 matches

by Peter
Wed May 26, 2021 6:27 am
Forum: Coding Questions
Topic: Spiderbasic invents query strings...?
Replies: 6
Views: 141

Re: Spiderbasic invents query strings...?

I don't see any error message in your post, but a look into my crystal ball shows me that you might get a CORS error message? In this case it would help if you add the following line to your CGI: WriteCGIHeader("Access-Control-Allow-Origin:", "*", #PB_CGI_LastHeader) Greetings .....
by Peter
Wed May 26, 2021 5:13 am
Forum: Coding Questions
Topic: Error: multipleDefine
Replies: 12
Views: 648

Re: Error: multipleDefine

skinkairewalker wrote: Tue May 25, 2021 11:34 pmhow can i fix it ??
the "If" in your code is uppercase.
by Peter
Wed May 19, 2021 1:40 pm
Forum: Coding Questions
Topic: QR Codes
Replies: 2
Views: 234

Re: QR Codes

Hi IdeasVacuum , here's a simple code to generate QR-Codes: EnableExplicit Procedure Main() Protected GID OpenWindow(0, 0, 0, 220, 220, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) CanvasGadget(0, 10, 10, 200, 200) GID = GadgetID(0) ! var qr = new QRious({ ! element: ...
by Peter
Tue Apr 27, 2021 8:57 pm
Forum: Coding Questions
Topic: Problem drawing on more than one canvas
Replies: 3
Views: 324

Re: Problem drawing on more than one canvas

William Van Hoecke wrote: Tue Apr 27, 2021 7:59 pmDoes Anyone have any idea why below code only draws in one canvasgadget ???
As I wrote: It seems to be a SpiderBasic bug, because the same code works as expected when executed with PureBasic. For this reason I moved your first post about this to the bug section.

Greetings ... Peter
by Peter
Mon Apr 19, 2021 8:36 pm
Forum: General Discussion
Topic: Free Version unavailable?
Replies: 5
Views: 955

Re: Free Version unavailable?

Confirmed. This should be fixed as soon as possible.
by Peter
Mon Apr 19, 2021 10:07 am
Forum: Bugs Reports
Topic: ContainerGadget + ResizeGadget() ignores #PB_Ignore
Replies: 2
Views: 203

Re: ContainerGadget + ResizeGadget() ignores #PB_Ignore

Confirmed. This is related to the Container-Border. The Container without a border is not resized: [...] If OpenWindow(#win0, 100, 200, 300, 150, "Container WIDTH & HEIGHT should not be expanding", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_ScreenCentered) ContainerGadg...
by Peter
Mon Apr 05, 2021 8:41 pm
Forum: Coding Questions
Topic: howto add parameter into callback ?
Replies: 5
Views: 428

Re: howto add parameter into callback ?

killer128k wrote:Eng: This is not a good answer. Wrong path.

Fr: Ce n'est pas une bonne réponse. Mauvais chemin.
i beg your pardon.
by Peter
Sat Apr 03, 2021 2:13 pm
Forum: Coding Questions
Topic: howto add parameter into callback ?
Replies: 5
Views: 428

Re: howto add parameter into callback ?

you can use a global variable (here: HttpGetEventHistlocResult) Global HttpGetEventHistlocResult.s Procedure ReadFileCallbackMAJcompta(Status, Filename$, File, SizeRead) Select Status Case #PB_Status_Loaded ; ... If ParseJSON(0, HttpGetEventHistlocResult ) ; ... EndIf EndSelect EndProcedure Procedur...
by Peter
Tue Mar 23, 2021 12:19 am
Forum: Coding Questions
Topic: Strange string variable...
Replies: 2
Views: 364

Re: Strange string variable...

window.location is an object, not a string.

Code: Select all

Global myweb.s

! v_myweb = window.location.href;

Debug myweb.s
Debug Len(myweb.s)
Debug Left(myweb,Len(myweb)-4)
by Peter
Sun Mar 21, 2021 12:13 pm
Forum: Coding Questions
Topic: Change button gadget during callback procedure
Replies: 8
Views: 420

Re: Change button gadget during callback procedure

@KianV: You can use setTimeout(): OpenWindow(0, 0, 0, 200, 100, "Button Callback",#PB_Window_ScreenCentered) Procedure ButtonCallback() SetGadgetText(1,"processing") ! setTimeout(function() { For f=1 To 1000 ; this just stalls for a while Debug f Next f SetGadgetText(1,"Gene...