ThatScriptGuy
08-06-2006, 11:41 AM
Well I've been googling for awhile now and I can't come up with an answer to my question....I have an iframe that is putting the forum into the page. I need this iframe to either expand with the expansion of the content, OR, better yet - Is there an alternative to an iframe?
You can see what I'm doing for the client at http://www.catholicya.com/index.php?page=forum
But we need to always eliminate the frame scrollbars, no matter how large the content.
Any advice is appreciated.
Kevin
Zaitech
08-06-2006, 03:25 PM
It looks like you got it figured out, but if not.. I would use PHP includes in order to include the content.
alecf
08-06-2006, 03:30 PM
the trouble with that though is when you get a link in your forum it will just link to that page and leave your page with the include();
Zaitech
08-06-2006, 03:36 PM
If you use an iFrame with php includes in it, I was thinking more along the lines of having a single index.php that took in all the information from the forums to display it on the same page instead of having the iframe in the first place.
ThatScriptGuy
08-06-2006, 03:40 PM
Due to the fact that I am embedding one already made script inside another, both with their limitations, that thought isn't feasable. Someone recommended using a regular frame instead of an iframe, but I still don't know how to resize the iframe automatically. I found some javascript code that works, but only if I am framing a local page (IE: index.html) instead of a remote one (IE: http://www.catholicya.com/forum)
I guess he'll just have to live with it unless someone can figure out something....
Kevin