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

Scroll and links in iframe
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4508
Page 1 of 1

Author:  jacruztin [ 5. Jan 2018, 01:53 ]
Post subject:  Scroll and links in iframe

Good day,

I developed this page: https://nuevos.autoscancun.com/nissan-kicks/
This page contains a navigation menu that when clicking on any link moves to the specified section, the links are of the following type:

<a href="#interior" class="scroll-to-link" ontouchstart="" data-scroll="true"> Interior </a>

The page works well but when the entry into the iframe links do not work.

Similarly, the navigation menu when you scroll the navigation menu remains fixed at the top. That does not work either if I add it to an iframe.

I hope you can help me solve it.

regards

Author:  TinyWebGallery [ 5. Jan 2018, 15:19 ]
Post subject:  Re: Scroll and links in iframe

so where is this page included?
Do you get any Javascripts errors if you place the page into an iframe?

Best, Michael

Author:  jacruztin [ 9. Jan 2018, 00:07 ]
Post subject:  Re: Scroll and links in iframe

Uncaught ReferenceError: aiProcessMessage is not defined
at receiveMessageadvanced_iframe ((index):543)
(index):1 Uncaught SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at aiProcessMessage (ai.js?ver=955976:1365)
at receiveMessageadvanced_iframe ((index):543)

Author:  TinyWebGallery [ 9. Jan 2018, 12:39 ]
Post subject:  Re: Scroll and links in iframe

Seems like a postMessage is sent to the parent which the plugin cannot handle. Does your iframe page also sends postMessage data?

How does you whole setup looks like and which is the parent page? Because I can debug on your website then.

Best, Michael

Author:  TinyWebGallery [ 9. Jan 2018, 13:49 ]
Post subject:  Re: Scroll and links in iframe

For me debugging would be the most interesting thing as I can then see which message you get there!

Best, Michael

Author:  TinyWebGallery [ 10. Jan 2018, 00:45 ]
Post subject:  Re: Scroll and links in iframe

Can you please also set post Message to debug on the "external workaround" tab. Then I can see the message in the log also.

Best, Michael

Author:  jacruztin [ 10. Jan 2018, 21:41 ]
Post subject:  Re: Scroll and links in iframe

I would like to give you access to the site so you can see how it works. The site is currently under construction and is not available to the public.

Thank You

Author:  TinyWebGallery [ 10. Jan 2018, 21:58 ]
Post subject:  Re: Scroll and links in iframe

Please send me a pm with the details.

Best, Michael

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