New Issue with iFrames and Scripts

MAD
MAD
@madc
10 years ago
600 posts
Hey guys. I am feeding in some created tpl pages in web root that have either a script or iframe in them.

They were working fine up til the last time I updated.

Now the body tags in the iframes are empty
I checked and they all still work everywhere else

I tried using the iframe module but that did nothing. Still just showing an empty div in firebug

I will leave them up for now so you can see

urls

https://www.punkbandpromotions.com/k-usr-radio
Under the play pause buttons

https://www.punkbandpromotions.com/rockin-devil-radio
Above the play pause buttons

One stream server users a script
the other an iframe

code on
https://www.punkbandpromotions.com/rockin-devil-radio

< iframe style=" border:0px; width:186px; height:260px;" frameborder="0" scrolling="no" src="http://radionomy.letoptop.fr/last_titres.php?radiouid=E3CB1D4F-5F45-44E7-B1FA-BC425EF33803&color=000000&bgcolor=FFFFFF&width=186&height=220&size=10&nb=4&thumb=40">< /iframe >

and on
https://www.punkbandpromotions.com/k-usr-radio

< script src="http://www.webradiocentral.com/now-playing.php?stream_url=http://204.45.126.170:8310&w=530&h=80&bg_color=000000&inner_bg=000000&txt_color=ffffff">< /script>

So what has changed as they were working fine and haven't done much backend lately except disabling developers tools

Either way the body of the iframes is empty
View the frames...they are still working, just not in my template pages.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 06/13/14 02:15:34AM
MAD
MAD
@madc
10 years ago
600 posts
I just worked out it's actually a browser issue.
We are running https and it is all now being blocked for some reason.
SOoooo...running a https site blocks all scripts and frames regardless
Any work around?
Ideas?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 05/12/14 05:02:48AM
brian
@brian
10 years ago
10,148 posts
MAD©:
I just worked out it's actually a browser issue.
We are running https and it is all now being blocked for some reason.
SOoooo...running a https site blocks all scripts and frames regardless
Any work around?
Ideas?

I've never heard that - just make sure the script source and iframe source are HTTPS as well... or that's my guess ;)

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
10 years ago
600 posts
Thats the problem. The sources don't run https.
Tried using a php file to load the contents then echo it into the template.
Still wouldn't work. Agh...any other ideas?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
michael
@michael
10 years ago
7,715 posts
Whats the error its thowing?
MAD
MAD
@madc
10 years ago
600 posts
No Error ,

The contents of the body in the iframe are just empty as apparently all browsers now won't load mixed content unless you let them by clicking the shield in the address bar.

If the site inside the frame is https works fine. http empty.
it's a known problem now.

I tried to load the iframe via a php file then echo it into the template as I said.
That still didn't work.

See the links in my first post
the frames are there just empty

If I allow them by clicking the shield they work.
But no-one would know to do that


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 05/13/14 02:45:31AM
michael
@michael
10 years ago
7,715 posts
This seams related:

"How to display non-SSL images on HTTPS connection?"
http://stackoverflow.com/questions/765779/how-to-display-non-ssl-images-on-https-connection

Quote: you can make your own ssl proxy.

Run all the images through this script. Just make a file and put this PHP code inside. Use curl or file_get_contents to echo out the content.

So if you want to call the secure image, you call it like this:........
MAD
MAD
@madc
10 years ago
600 posts
Yeah I already tried the file_get_contents, That didnt work.
Also that link shows how to add images.
We are trying to show Latest playing songs on radio pages.
Works fine on http sites.

This is what I found
https://help.instructure.com/entries/22978880-iframes-suddenly-not-working
Which explains it pretty well
Need a workaround to overcome the browser blocks

Tried this
http://stackoverflow.com/questions/18327314/how-to-allow-http-content-within-an-iframe-on-a-https-site?lq=1#22617945
didn't work


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 05/13/14 04:46:28AM
michael
@michael
10 years ago
7,715 posts
reminds me of IE6 issues:
* "Your site is broken"
* "Nope, your browser is broken"
....(repeat)

Tags