![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: iframe, scroll position
-
AuthorPosts
-
February 4, 2020 at 7:07 pm #1181454
Hello,
I encountered a problem that I can’t seem to solve myself:
At https://hellhof-kronberg.de/#veranstaltungen if you scroll down to the “DIREKT BEI UNS BUCHEN” section of the events, there is an iframe with an eventim booking system. If you click on any links within the iframe, they work, but the main page is being reset to a scrolling position near the top of the page. It seems the page forgets its scroll position and I guess it has something to do with the iframe resizing after the click, but I can’t figure out what to do to prevent this unintended scrolling.
Can you please help?
Thanks a lot,
Florian-
This topic was modified 4 years, 7 months ago by
fprabst.
February 4, 2020 at 9:11 pm #1181535Hey fprabst,
This is unfortunately due the fact the the iFrame is in use. It reloads the entire browser. A function like that is better suited with an AJAX solution so the browser does not have to refresh.
Best regards,
Jordan ShannonFebruary 5, 2020 at 8:52 am #1181644Hey Jordan,
thanks for the quick reply!
Best regards,
FlorianFebruary 6, 2020 at 6:37 pm #1182089Hi,
No problem. Did you need additional help with this topic?
Best regards,
Jordan ShannonFebruary 6, 2020 at 6:48 pm #1182101Hi,
can we leave it open for the moment until I could find the root cause of the problem? The content provider for the iframe claims that another iframe is interfering and their iframe is not to blame. I’d love to get to the bottom of it, but if you think that’s too particular and not interesting for similar issues, you can certainly close the thread.
Thanks,
FlorianFebruary 7, 2020 at 3:43 pm #1182328The code block provided by Eventim is this:
<div style=”padding: 0;”><iframe id=”eventim-light-iframe-v2-5e207ac7a5bbfa00015c7c8b” src=”https://www.eventim-light.com/de/a/5e207ac7a5bbfa00015c7c8b/iframe/” width=”100%” scrolling=”no” frameborder=”0″ name=”eventim-light-iframe-v2-5e207ac7a5bbfa00015c7c8b”></iframe><script type=”text/javascript” src=”https://www.eventim-light.com/de/a/5e207ac7a5bbfa00015c7c8b/public/iframe/el-shop.js”></script></div>
The el-shop.js script at the end which takes care of the resizing of the (cross domain) content seems to be the culprit.
Waiting to hear back from them.February 8, 2020 at 7:13 am #1182473 -
This topic was modified 4 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.