Page 1 of 1

Need help with Cursor style

Posted: Sun Jun 14, 2020 1:38 pm
by menschmarkus
Hi,

sorry but SB and JS is new field for me.
Is it possible to change cursor style to

Code: Select all

! cursor:progress; 
; alternatively
! cursor: wait;
while a SB procedure is running and set it back to

Code: Select all

! cursor:default;
after the procedure is done!
I tried these commands within SB code but it did not work.

Code: Select all

...
! cursor: progress;
do_something()
! cursor: default;
I hope not annoying you with my questions :?

Re: Need help with Cursor style

Posted: Sun Jun 14, 2020 2:27 pm
by Peter
you can use:

Code: Select all

! $("body").css("cursor", "progress");
and:

Code: Select all

! $("body").css("cursor", "default");

Re: Need help with Cursor style

Posted: Sun Jun 14, 2020 2:54 pm
by menschmarkus
Peter, thank you for your quick response. This is working fine.

Again my question. Is there any instruction how to implement JS in SB ?
In your last link (developer.mozilla.org) I find general information for JS. Similar information in http://www.w3schools.com. However in there you will not find information how to implement JS code in SB.
Some Samples would be helpful like the ones I asked. Of course it is not possible to write a complete manual for JS in SB but I can imagin there are basic situations which may occure more often can be described here.
Propably just a selection of already done posts for implementing JS in SB would make it easier for everyone to find possible solution.

Thank you again, Peter, for your effort to help in this Forum.

Re: Need help with Cursor style

Posted: Sun Jun 14, 2020 3:01 pm
by bbanelli
menschmarkus wrote: Again my question. Is there any instruction how to implement JS in SB ?
All along, it was in a place no one would ever search...

https://www.spiderbasic.com/documentati ... nedjs.html

Re: Need help with Cursor style

Posted: Sun Jun 14, 2020 7:46 pm
by menschmarkus
Thank you bbanelli, that was really hidden.