Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Scrolls the parent window/iframe to the top in External work
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=5337
Page 1 of 1

Author:  VISGN [ 21. Oct 2018, 18:35 ]
Post subject:  Scrolls the parent window/iframe to the top in External work

How to use the Scrolls the parent window / iframe to top feature in an external solution?

I use a different domain.

When updating the iframe form the scroll of the parent page goes straight to the footer.

I would like when updating the form the scroll of the parent page would be to the top of the iframe.

Author:  TinyWebGallery [ 21. Oct 2018, 20:52 ]
Post subject:  Re: Scrolls the parent window/iframe to the top in External

have you enabled the scroll to top functionality already. Because this works if the external page does a real page reload!

The point is: which event is actually done? Is the updating of the form a real reload of the page or only a ajax event?

Best, Michael

Author:  VISGN [ 22. Oct 2018, 01:22 ]
Post subject:  Re: Scrolls the parent window/iframe to the top in External

From what I've noticed, it's not a real page load. It is an event that loads form steps, and for each step there would be a need to be loaded at the top of the iframe.

Test here and noticed that for loading actual pages the iframe goes to the top.

Author:  TinyWebGallery [ 22. Oct 2018, 20:57 ]
Post subject:  Re: Scrolls the parent window/iframe to the top in External

And I think you cannot do a reload inside the iframe - right?

Because then the only option is to write some Javascript which would e.g. trigger the resize callback.
And then the plugin has to be extended that this callback triggeres the scrollToTop method.

Best, Michael

Author:  TinyWebGallery [ 22. Oct 2018, 21:58 ]
Post subject:  Re: Scrolls the parent window/iframe to the top in External

I have a different question. Can you identify e..g the buttons where you want to scroll?
e.g. with a class, all buttons? ...

Because this could then trigger the onload callback..

Best, Michael

Author:  TinyWebGallery [ 25. Oct 2018, 22:40 ]
Post subject:  Re: Scrolls the parent window/iframe to the top in External

?

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/