Hi all, how would you adjust the height of an iframe based on its src content?
I want to integrate a forum (phpbb) inside my custom made website. The problem is that there is no way to dynamically adjust the iframe height... im pulling out my hair here...
I thought javascript would be the best way to do that, the problem is that i know nothing about JS... Here is my idea,
-2 scripts, 1 in the parent page (the one with the iframe tag) and the second one in the main forum page
-The script inside the parent page, would dynamically set the "height" parameter inside the iframe tag based on a value passed by the second script.
-The second script, inside the forum page, would read the entire content of the (document.body.scrollHeight) current page and sends its result to the first script
I have found a script that was supposed to do that, but for some reasons it doesnt work very well. Here is the link where i explain de problem with it: http://www.dynamicdrive.com/forums/showthread.php?p=2891&posted=1#post2891
Now, what do the experts think? do you think its gonna work? Is this a bad idea? Please i need help bad.
Thanks in advance,
fred