Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Page is loading twice (when loading ai_external.js) https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=5752 |
Page 3 of 4 |
Author: | TinyWebGallery [ 1. Mar 2019, 01:47 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
found the problem. I was renaming a method. And I renamed the wrong one... I make a new build and send you a link tomorrow. Best, Michael |
Author: | Asle [ 1. Mar 2019, 09:55 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Hi, Removed var onload_resize_delay=100; Now I can see the page again! Also I do not have the problem in Chrome where the page was clipped at the bottom so I could not see the navigation on the iframe page. Still the iframe does not show on Chrome mobile (IOS and android). |
Author: | TinyWebGallery [ 1. Mar 2019, 10:19 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Please wait for my fix. Because the resize delay fixed the mobile chrome issue. But the wrapper is now gone. This was the first goal. Best, Michael |
Author: | Asle [ 4. Mar 2019, 16:47 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Hi Michael, what is the progess on the fix? |
Author: | TinyWebGallery [ 5. Mar 2019, 10:34 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Fix is done but unfortunately In between I was doing some code changes to meet the new code canyon plugin requirements. I need to test everything now again. Still in progress. I maybe can send you a version tonight. Best, Michael |
Author: | TinyWebGallery [ 6. Mar 2019, 00:41 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
I just did some tests with my new version. It is is still not stable enough! If you like I can point to you the place you need to change. you only have to modify 2 places... Best, Michael |
Author: | Asle [ 6. Mar 2019, 11:02 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Yes, just let me know where to change and I can test it. |
Author: | TinyWebGallery [ 7. Mar 2019, 00:00 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
You need to modify js/ai_external.template.js There is a method called: aiResizeLater_PARAM_ID() { document.body.style.overflow='auto'; } it needs to be function removeOverflowHidden() { document.body.style.overflow='auto'; } then if (keepOverflowHidden === 'false') { var timeoutRemove = onload_resize_delay + 500; window.setTimeout(aiResizeLater_PARAM_ID, timeoutRemove); } needs to be if (keepOverflowHidden === 'false') { var timeoutRemove = onload_resize_delay + 500; window.setTimeout(aiRemoveOverflowHidden, timeoutRemove); } Save this file. Then go to the administration and save to generate ai_external.js again. Retry... Best, Michael |
Author: | Asle [ 7. Mar 2019, 10:55 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Hi, I edited the file and now the iframe is not showing at all. In Chrome inspector I see this error: Uncaught ReferenceError: aiRemoveOverflowHidden is not defined at aiExecuteWorkaround_frame_content (ai_external.js?vs=35:308 I had to change the code back to original to at least get my iframe to work on desktop browser. |
Author: | TinyWebGallery [ 7. Mar 2019, 11:01 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Ah function removeOverflowHidden() { -> function aiRemoveOverflowHidden() { I did a lot of refactoring. e.g. each of the methods now has its own prefix ai... |
Author: | Asle [ 7. Mar 2019, 11:15 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Good. Page is showing again! Still does not show on Chrome mobile. Page loads on Firefox mobile and Safari IOS. https://biofokus.no/narin/ |
Author: | TinyWebGallery [ 7. Mar 2019, 14:06 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
and now you add var onload_resize_delay=100; again. |
Author: | Asle [ 7. Mar 2019, 15:09 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
Thanks I did that and emptied all caches. Still not showing in Chrome mobile. |
Author: | TinyWebGallery [ 8. Mar 2019, 02:01 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
strange- was was the setting when on mobile it does work. About chrome mobile. IOS, Android? where can I test? Best, Michael |
Author: | Asle [ 8. Mar 2019, 10:42 ] |
Post subject: | Re: Page is loading twice (when loading ai_external.js) |
You can test this page on Chrome mobile: https://biofokus.no/narin/ Does not work on mobile Chrome. The shortcode is this: Code: [advanced_iframe src="https://narin.biofokus.no/indexbio_sa.lasso" id="narinbio" use_shortcode_attributes_only="true" enable_external_height_workaround="true" enable_responsive_iframe="true" hide_page_until_loaded_external="true" url_forward_parameter="ALL" width="100%" height="300" scrolling="no"] This page uses the same iframe but different shortcode. Shows only part of the iframe on Chrome mobile: https://biofokus.no/narin-test/ Shortcode: Code: [advanced_iframe src="https://narin.biofokus.no/indexbio_sa.lasso" id="narinbio" enable_responsive_iframe="true" enable_external_height_workaround="true" width="100%" height="300" url_forward_parameter="ALL" scrolling="no"] I really can't remember if it has worked on Chrome mobile. My old page did work https://biofokus.no/narin-test2 It uses same shortcode as the first page (/narin/) but different iframe. |
Page 3 of 4 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |