Page 1 of 1

Ways to stop iframe refreshing white screen

Posted: Thu Feb 28, 2008 7:19 pm
by akphidelt
Hi there, this is just a quick question. I have a PHP code that assigns a variable to a movie that I want played when the link is clicked. I finally got it to work in which I have the video page and an iframe in the middle that fits the video player. I know this is a bit picky. But is there anyway to prevent the iframe from refreshing to a white screen when a link is clicked?

For a better example, the entire background is black along with the iframes background, but when a new movie gets selected the iframe turns white, then loads the movie.

Any clues?

Re: Ways to stop iframe refreshing white screen

Posted: Thu Feb 28, 2008 10:10 pm
by hawkenterprises
refreshing to a white screen might be a problem to avoid. Have you tried an AJAX solution instead of your iframe. Alot of times you can use a hidden div and avoid the iframe solution. Try looking into XMLHttpRequest for Javascript.