Say that I want to iframe this forum for an example, but I don't want the header or sidebar, just the posts, would there be a way to filter out the header and sidebar, with like javascript?
I'm not sure there is any way to do this, unless there is a way to load the page as a string or array first - but even then, you need to know exactly what the position is of the divs, which may change depending on the parsing output.
Tricky..
Unless the forum outputs an rss feed, which can be easily accessed.
I had a similar problem this week...
I decided the best way was to cURL the iframe page, store the html in a variable and just parse it to remove/retrieve the bits of HTML before putting them on my page (I did it through AJAX, but I'm sure you don't necessarily have to)
Although I'm sure you can access the contents of the iframe through javascript and remove the offending div(s)