Iframe Height - is there a clever solution

Associate
Joined
20 May 2007
Posts
441
Hey everyone

I want to have an iframe that displays the main information for my site.

The main reason I want to use an iframe is so that I can have a flash music player running on the page without it being reloaded everytime someone clicks a link.

Anyway I want the height of the iframe to adjust so that the page that loads into the iframe is always visible and there is no need for the vertical scrollbar.

The site link is here www.gauntface.co.uk

Is this possible? Any help or suggestions of how I might achieve what Im trying to do would be great, many thanks

Gaunt
 
Honestly, unless you have a really good reason for having music on the site I would ditch it. There is nothing worse than visiting a site then all of a sudden some music starts playing that I really didn't want to listen to. More often than not - unless I really need to find something on the page I'll just close the site.

I don't know the fix for your problem however - rather than using an iFrame you could use AJAX to pull the content in on the fly?
 
Tbh I'd lose the music. The vast majority of users will hate the fact there's music there. If you can avoid IFRAMES, then avoid them, try using PHP includes or similar.
 
Okies what Im going to do with music player is just set it not to player unless the user clicks on play.

Ill look into ajax and php but not sure if my server will let me use either of them
 
No your right it does support PHP.

Ill look into using php to do what I want then, anyone have any good tutorials that would be great, but no worries if not, im sure google will help me out :-)

Thanks for the advice guys

Gaunt
 
Using PHP includes will refresh the page and start the music playing from the beginning though. He wants the user to be able to navigate round the site without the music stopping.
 
Yeah Ekims right, i did hope to make it so my flash player wouldn't reload everytime I change the page

If this isn't possible then fair enough, ill just dump the music player and go for a simpler approach which means I wouldnt need php anyway

Gaunt
 
uhhhhh you don't need an iframe you need an original style frameset with two frames... one frame's height is 100% and contains your main site and the other is hidden at 0%height and contains the flash music player.

strongly not recommend this though.
 
I jus quite liked the look of the site as it was is all, dont think id like it as much if it was launched in its own window, dont worry I'm obviously trying to achieve that cant be achieved without a great deal of effort.

Thanks anyway guys

Gaunt
 
The flash takes a while for me to load as well, I almost closed it cos I thought it was broken.
 
Back
Top Bottom