Browser widget and loading animation

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Browser widget and loading animation

Post by [-hh] » Sat Dec 01, 2018 12:26 am

This is the answer to a post in the use-list: ... 51777.html

The following works tested here on desktop, should work everywhere where the browser widget works.

1. Overlay browser widget "browser" with a browser widget "loader" (that displays a loading animation).
2. Load the slow loading URL into widget "browser".
3. Hide widget "loader" by browserDocumentLoadComplete of widget "browser".

See in detail the attached stack.
Note. If you have one instance of a browser widget then more instances (as here "loader") do NOT increase the size of your stack/standalone (except the image used).
(2.11 KiB) Downloaded 292 times
loadingTest.png (62.38 KiB) Viewed 4470 times
shiftLock happens

Posts: 874
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy

Re: Browser widget and loading animation

Post by trevix » Tue Apr 18, 2023 12:14 pm

I guess we could also do, in this way, a general use "Spinner", that will keep running no matter what.
May be getting the image locally, not from the web?
Tell me what you think.

OSX 12.5.1 xCode 13.2 LC 9.6.8 iOs 15> Android 7>

Post Reply

Return to “LiveCode Builder”