Browser widget and loading animation

Moderators: LCMark, LCfraser

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1808
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:
http://lists.runrev.com/pipermail/use-l ... 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).
 
Attachments
loadingTest.livecode.zip
(2.11 KiB) Downloaded 35 times
loadingTest.png
loadingTest.png (62.38 KiB) Viewed 238 times
shiftLock happens

Post Reply

Return to “LiveCode Builder”