Search…

X3 Photo Gallery Support Forums

Search…
 
Krysbe
Topic Author
Posts: 16
Joined: 27 Apr 2020, 10:01

External script not correctly loaded

08 Jul 2020, 10:12

Hello, 



I've a Gumroad button on a page that call page using overlay 

When you go to this page https://christophepenninckx.com/Shop/Free-Wallpapers/ from the menu, not directly, the script is not loaded and the button appear like a simple link and don't open the page with overlay. 

To have the correct button working with the script, you need to access to this page directly or reload the page manually. 

Thanks, 
Chris
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: External script not correctly loaded

09 Jul 2020, 01:21

Hi. Thanks for making a separate post for this. I was checking the website, and it seems like sometimes it works when navigating to the page, and sometimes not. I believe this has something to do with where the javascript is placed, because sometimes the javascript triggers before the buttons are available. As you can see, it always works when re-loading the page, but that is because the javascript (from gumroad) is set to trigger on window.load (entire document is loaded), which does not trigger when navigating the the page.

Is it possible you can send login to your X3 panel for me in PM (private message), so I can see if I can get it to work for you?