Search found 709 matches

by Peter
Wed Mar 10, 2021 1:00 pm
Forum: Coding Questions
Topic: Wait until readfile has finished
Replies: 1
Views: 221

Re: Wait until readfile has finished

How can I wait/halt my program until the read-loop has finished? Although this is technically possible, it is not recommended. The browser only executes the JavaScript single-threaded. If you block this thread (because you are waiting for something), the browser freezes. The file is completely load...
by Peter
Wed Feb 24, 2021 7:55 am
Forum: Coding Questions
Topic: delete cache
Replies: 9
Views: 560

Re: delete cache

Code: Select all

LoadImage(#mypic,"myfolder/mypic17.jpg?rnd=" + ElapsedMilliseconds())
by Peter
Tue Feb 23, 2021 7:51 am
Forum: Showcase
Topic: Use SQLite with SpiderBasic
Replies: 17
Views: 8681

Re: Use SQLite with SpiderBasic

Dirk Geppert wrote:There is only one array to see..
... which however can be converted relatively easily.

So I would not store state secrets in it. ;)
by Peter
Sun Feb 21, 2021 12:52 pm
Forum: Tricks 'n' Tips
Topic: Closable (& disableable) PanelGadget-Items with Callback
Replies: 6
Views: 2615

Re: Closable (& disableable) PanelGadget-Items with Callback

@skinkairewalker: Can you provide a small test web page? Then I could identify the corresponding element relatively quickly.
by Peter
Sun Feb 21, 2021 12:46 pm
Forum: Coding Questions
Topic: OpenFileRequester
Replies: 1
Views: 243

Re: OpenFileRequester

jpg, jpeg, png:

Code: Select all

OpenFileRequester("image/jpeg,image/png", ...
As far as I know, there is no way to display only jpg but no jpeg files.
by Peter
Sat Feb 20, 2021 11:21 am
Forum: Javascript
Topic: What am I doing wrong when importing a JS script?
Replies: 11
Views: 2029

Re: What am I doing wrong when importing a JS script?

It seems to be a bigger problem to include the metro-library. In an earlier version I managed to do this with the HttpPreProcessor. In the current version, this no longer seems to work.
by Peter
Wed Feb 17, 2021 6:33 pm
Forum: Tricks 'n' Tips
Topic: Closable (& disableable) PanelGadget-Items with Callback
Replies: 6
Views: 2615

Re: Closable (& disableable) PanelGadget-Items with Callback

have a way to remove this black border on click in tab ? The border does not appear for me. https://i.imgur.com/VoAefsE.png Have you integrated another CSS? Which browser are you using? Perhaps this one will help: ! $("head").append("<style>.dijitTab:focus{outline: none;}</style>&quo...
by Peter
Wed Feb 17, 2021 4:24 pm
Forum: Coding Questions
Topic: [SB 2.31] #PB_String_NoCase fails with FindString()
Replies: 2
Views: 203

Re: [SB 2.31] #PB_String_NoCase fails with FindString()

munfraid wrote:#PB_String_NoCase doesn't work with FindString():
#PB_String_NoCase is the fourth parameter. ;)
by Peter
Wed Feb 17, 2021 11:34 am
Forum: Showcase
Topic: PDF generator (jsPDF)
Replies: 11
Views: 7080

Re: PDF generator (jsPDF)

Dirk Geppert wrote:Thx Peter!

⠀⠀⠀(⠀(
⠀⠀⠀⠀)⠀)
⠀⠀⠀........
⠀⠀|⠀⠀⠀⠀|]
⠀⠀\⠀⠀⠀⠀/
⠀⠀⠀`----'
Thank you for your donation! :)
by Peter
Tue Feb 16, 2021 4:48 pm
Forum: Showcase
Topic: PDF generator (jsPDF)
Replies: 11
Views: 7080

Re: PDF generator (jsPDF)

Unfortunately the JS link no longer works. the current version is 2.3.0. Here is the adjusted code: Procedure CloseWindowEvent() CloseWindow(EventWindow()) EndProcedure Procedure ScriptLoaded() DisableGadget(1, #False) EndProcedure Procedure GadgetEvents() Select EventGadget() Case 1 ; save PDF Pro...