Ways to stop iframe refreshing white screen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
akphidelt
Forum Newbie
Posts: 6
Joined: Wed Feb 13, 2008 2:09 pm

Ways to stop iframe refreshing white screen

Post 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?
User avatar
hawkenterprises
Forum Commoner
Posts: 54
Joined: Thu Feb 28, 2008 9:56 pm
Location: gresham,oregon
Contact:

Re: Ways to stop iframe refreshing white screen

Post 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.
Post Reply