svcghost — 2011-02-27T21:50:51-05:00 — #1
Is there any reason why an iFrame that displays a page with a youtube video on it would display properly if I view the html file locally on my computer (file:///Users/darinberkz/Desktop/index.html), but not when viewing the html file on my web server?
This only seems to be the case for this youtube video right now, but google.com works in the iframe on both locally and the webserver.
stevie_d — 2011-02-28T05:51:37-05:00 — #2
Without seeing the page in question, it's difficult to guess at the answer - can you give us a link to the page on your server?
svcghost — 2011-02-28T06:39:05-05:00 — #3
it's a local webserver. sorry.
the weird thing is youtube in an iframe works if the html file is viewed straight from your computer, the file itself, but it doesn't work when it's being hosted on a web server
perhaps youtube, when viewed in iframe, checks the parent url to see if it's a real domain name, and then disallows viewing youtube in the iframe? but not if the url in the parent window is a file path?? weird..
atsea_webdesign — 2011-02-28T12:45:59-05:00 — #4
svcghost — 2011-02-28T15:53:35-05:00 — #5
unfortunately the page is not helpful. I am not embedding a video only, but rather the entire web page. And the html files are identical on my web server and local machine. The local machine displays the site in the iframe properly, the web server html file displays a blank page. no idea why.