custombox icon indicating copy to clipboard operation
custombox copied to clipboard

Automatic Refreshing Iframe on page

Open vaibhavbhanushali opened this issue 8 years ago • 11 comments

Whenever i try to open Custombox, the iframe on my page (not in Custombox modal content), gets automatically refreshed.

vaibhavbhanushali avatar Jun 21 '16 13:06 vaibhavbhanushali

Hi, Try this: https://github.com/dixso/custombox/issues/183

dixso avatar Jun 21 '16 14:06 dixso

Well, it prevents it from opening, but on close function, still the iframe reloads. Any suggestions?

vaibhavbhanushali avatar Jun 28 '16 17:06 vaibhavbhanushali

He told me in an email he'll start working on a new version from this week on and fix this issue. Hopefully he can solve it soon as our website is almost unuseable while this bug hasnt been solved.

Teppichratte avatar Jul 15 '16 19:07 Teppichratte

Hello @Teppichratte I have managed to fix my issue on my own. Also use Custombox.set({ autobuild: true }); at top of the page. (Downside: your page body content will be wrapped inside a div,though it doesn't matters much), but this will work, until he releases new version custombox.js.zip

vaibhavbhanushali avatar Jul 31 '16 15:07 vaibhavbhanushali

Hi @vaibhavbhanushali, thank you for your effort. I will try it next week but I hope he will publish a new version until next week. Greetz

Teppichratte avatar Aug 01 '16 07:08 Teppichratte

Hi @dixso, your bugfix is still not fixing all issues.

It got better but here you can see the iframe of a youtube video getting refreshed each time a modal window gets opened or closed. I'm using the latest version of your custombox: video.zip

Teppichratte avatar Jul 28 '17 11:07 Teppichratte

@dixso Any news on this?

Teppichratte avatar Aug 19 '17 13:08 Teppichratte

Hi @Teppichratte , I'm on holidays, I'll review it when I return.

dixso avatar Aug 21 '17 09:08 dixso

For your information: Everytime the modal windows gets opened OR closed the iframe (e. g. youtube video) in the background gets refreshed/reloaded.

This happens when you use the following properties:

			target: "#modal_window",
			effect: "blur",
			open: function() {},
			escKey: false,
			speed: 200,
			overlaySpeed: 200,
			overlayColor: "#eeeeee",
			overlayOpacity: 0.6,
			speedIn: 200,
			speedOut: 0

If you remove "speedIn" and "speedOut" then only the first opening (NOT the closing) refreshs/reloads the iframe in the background. I have removed the usage of speedIn and speedOut but still the first refreshing/reloading of the youtube iframe is annoying.

Can you tell me, when you are going to fix this?

Teppichratte avatar Aug 30 '17 16:08 Teppichratte

Now I've noticed that when I change the effect from "blur" to "scale" the iframe doesn't get refreshed/reloaded in the background so it must be a thing with the blur effect.

Teppichratte avatar Aug 30 '17 18:08 Teppichratte

Agreed with @Teppichratte, maybe its a blur problem im using it right now and reloads, if i use fadein everything works fine.

mrov avatar Oct 10 '17 20:10 mrov