Search found 43 matches

by William Van Hoecke
Thu Mar 23, 2023 1:27 am
Forum: Coding Questions
Topic: HTML button event
Replies: 4
Views: 255

Re: HTML button event

Peter,
I have solved the problem, I can now call SB function from within the webgadget.
the window. object you suggested can direct to the parent like this
<button id='button1' onclick='window.parent.f_clicked(this.id)'>Alles Lezen</button>

Thanks
by William Van Hoecke
Thu Mar 23, 2023 12:48 am
Forum: Coding Questions
Topic: HTML button event
Replies: 4
Views: 255

Re: HTML button event

Peter,
definitly an out of scope, I've put the javascript function within the html form in webgadget and then the alertbox pops up.
Still my problem remains... how do I call function in my SB code ??
by William Van Hoecke
Thu Mar 23, 2023 12:31 am
Forum: Coding Questions
Topic: HTML button event
Replies: 4
Views: 255

Re: HTML button event

Thanks for the answer Peter,
Not sure what the window.buttonclicked = buttonclicked; is supposed to do and when it is called.
but ... it doesn't make any difference :(

Any other ideas
by William Van Hoecke
Wed Mar 22, 2023 5:54 pm
Forum: Coding Questions
Topic: HTML button event
Replies: 4
Views: 255

HTML button event

Hello, I my program I use a webgadget() in which I load a htmlpage that contains a button like this <button id='button1' onclick='buttonclicked(this.id)'>Read All</button> I my program I also have als an inline javascript function like ! function buttonclicked(id) ! { ! alert('id'); ! } When I click...
by William Van Hoecke
Sat Mar 11, 2023 2:41 am
Forum: Bugs Reports
Topic: setclipboardtext()
Replies: 0
Views: 103

setclipboardtext()

Hello,

Setclipboardtext() seems to be working in google chrome on windows desktop but not on android smartphone. Why is that.
Other apps seem to be using my android clipboard correctly.
by William Van Hoecke
Sun Oct 30, 2022 6:20 pm
Forum: Coding Questions
Topic: wrong list iteration
Replies: 2
Views: 338

Re: wrong list iteration

Peter ...No can do.... during a loop trough list_one, I only need to copy certain elements form list_one to list_two... Copylist however copies the entire list (according to documentation). currently i copy every single value of the structure like this List_two()\literal = List_one()\literal List_tw...
by William Van Hoecke
Wed Oct 26, 2022 9:54 pm
Forum: Coding Questions
Topic: wrong list iteration
Replies: 2
Views: 338

wrong list iteration

Hello, I upgraded to 2.40 beta 1 The following code is behaving strangly different and incorrect on every browser-page-refresh (F5) Am I doing something wrong here or could this be a bug ? Structure textstructure literal.s decoration.s enterflag.i EndStructure NewList list_one.textstructure() NewLis...
by William Van Hoecke
Wed Feb 09, 2022 11:16 pm
Forum: Coding Questions
Topic: How to fill an Array in procedure ReadCallback?
Replies: 4
Views: 1249

Re: How to fill an Array in procedure ReadCallback?

So, if I call the procedure DebugDaten() at the end of the program the data are lost. What's my mistake? SpiderBasic is asynchronous. You are probably reading the array before it was even filled. As Peter already pointed out, call whatever code you will use on the array from the end off the ReadCal...
by William Van Hoecke
Wed Jan 19, 2022 3:04 pm
Forum: Coding Questions
Topic: canvas problem
Replies: 2
Views: 644

Re: canvas problem

SOLVED... Thanks very much Paul Since the second window is killed, only mainwindow exists, I thought the canvas was automatically added to this only window, I even did ' SetActiveWindow(#mainwindow) ' to make sure.... Pity however that my malpractice did not show ANY error Been searching to solve t...
by William Van Hoecke
Tue Jan 18, 2022 11:57 pm
Forum: Coding Questions
Topic: canvas problem
Replies: 2
Views: 644

canvas problem

Hello, The only way I can find to clear a transparent canvas from its previous drawing is to FREE the canvas an create it again.... works fine However after another window was shown the canvas never shows again, until I refresh the browserpage (F5) QUESTION: WHAT am I doing wrong here. Enumeration #...