Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Insert as Reference Stops Animated GIF

Featured Replies

Hi Everyone,

 

I have an animated GIF (spinner icon) in a web viewer that I display while running a script to show the system is busy. One of the script steps inserts a file as a reference. This step takes about 5 to 10 seconds to complete. I have noticed that if the file path uses an address with a mapped drive it is much quicker than a UNC address, unfortunately I need to use a UNC file path. When the script gets to the insert file as reference it stops the animated gif and causes the web viewer to go blank until the insert file step completes. Any ideas on a fix to keep the GIF animated while the insert file as reference completes or any other solutions?

 

Thanks for your help

 

Daniel

  • 5 weeks later...

Hi there,

 

I tried doing something similar with a solution a while back. What I ended up doing, and turned out to be a clever trick was this:

 

-Take your animated GIF and convert it to base64 (I used this website: http://www.base64-image.de/)

-Create a web viewer object and insert the HTML below as your web address, substituting your_base_64_data_goes_here

 

I've found this to be a quick way to accomplish this, and haven't noticed any obvious performance degradation as a result.

"data:text/html,
<html>
<head>
<style type="text/css">
body {border:none; text-align: center;  margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
    padding: 0; background-color:#b3b4b4;}
</style>
</head>

<body>


<img src="data:image/gif;base64,your_base_64_data_goes_here">




</body>

</html>"

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.